pub struct CalendarObjectResourceService<C: CalendarStore> { /* private fields */ }Implementations§
Source§impl<C: CalendarStore> CalendarObjectResourceService<C>
impl<C: CalendarStore> CalendarObjectResourceService<C>
pub const fn new(cal_store: Arc<C>, config: Arc<CalDavConfig>) -> Self
Trait Implementations§
Source§impl<C: CalendarStore> AxumMethods for CalendarObjectResourceService<C>
impl<C: CalendarStore> AxumMethods for CalendarObjectResourceService<C>
fn get() -> Option<fn(Self, Request) -> BoxFuture<'static, Result<Response, Infallible>>>
fn put() -> Option<fn(Self, Request) -> BoxFuture<'static, Result<Response, Infallible>>>
fn report() -> Option<fn(Self, Request<Body>) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Infallible>> + Send>>>
fn post() -> Option<fn(Self, Request<Body>) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Infallible>> + Send>>>
fn mkcol() -> Option<fn(Self, Request<Body>) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Infallible>> + Send>>>
fn mkcalendar() -> Option<fn(Self, Request<Body>) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Infallible>> + Send>>>
fn import() -> Option<fn(Self, Request<Body>) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Infallible>> + Send>>>
fn allow_header() -> Allow
Source§impl<C: CalendarStore> Clone for CalendarObjectResourceService<C>
impl<C: CalendarStore> Clone for CalendarObjectResourceService<C>
Source§impl<C: CalendarStore> ResourceService for CalendarObjectResourceService<C>
impl<C: CalendarStore> ResourceService for CalendarObjectResourceService<C>
const DAV_HEADER: &str = "1, 3, access-control, calendar-access"
type PathComponents = CalendarObjectPathComponents
type Resource = CalendarObjectResource
type MemberType = CalendarObjectResource
type Error = Error
type Principal = Principal
type PrincipalUri = CalDavPrincipalUri
fn get_resource<'life0, 'life1, 'async_trait>(
&'life0 self,
_: &'life1 Self::PathComponents,
show_deleted: bool,
) -> Pin<Box<dyn Future<Output = Result<Self::Resource, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_resource<'life0, 'life1, 'async_trait>(
&'life0 self,
_: &'life1 Self::PathComponents,
use_trashbin: bool,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_members<'life0, 'life1, 'async_trait>(
&'life0 self,
_path: &'life1 Self::PathComponents,
) -> Pin<Box<dyn Future<Output = Result<Vec<Self::MemberType>, Self::Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn save_resource<'life0, 'life1, 'async_trait>(
&'life0 self,
_path: &'life1 Self::PathComponents,
_file: Self::Resource,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn copy_resource<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_path: &'life1 Self::PathComponents,
_destination: &'life2 Self::PathComponents,
_user: &'life3 Self::Principal,
_overwrite: bool,
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
fn move_resource<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_path: &'life1 Self::PathComponents,
_destination: &'life2 Self::PathComponents,
_user: &'life3 Self::Principal,
_overwrite: bool,
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
fn axum_service(self) -> AxumService<Self>
fn axum_router<S>(self) -> Router<S>
Auto Trait Implementations§
impl<C> Freeze for CalendarObjectResourceService<C>
impl<C> RefUnwindSafe for CalendarObjectResourceService<C>where
C: RefUnwindSafe,
impl<C> Send for CalendarObjectResourceService<C>
impl<C> Sync for CalendarObjectResourceService<C>
impl<C> Unpin for CalendarObjectResourceService<C>
impl<C> UnwindSafe for CalendarObjectResourceService<C>where
C: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more