pub struct CalendarResourceService<C: CalendarStore, S: SubscriptionStore> { /* private fields */ }Implementations§
Source§impl<C: CalendarStore, S: SubscriptionStore> CalendarResourceService<C, S>
impl<C: CalendarStore, S: SubscriptionStore> CalendarResourceService<C, S>
Trait Implementations§
Source§impl<C: CalendarStore, S: SubscriptionStore> AxumMethods for CalendarResourceService<C, S>
impl<C: CalendarStore, S: SubscriptionStore> AxumMethods for CalendarResourceService<C, S>
fn report() -> Option<fn(Self, Request) -> BoxFuture<'static, Result<Response, Infallible>>>
fn get() -> Option<fn(Self, Request) -> BoxFuture<'static, Result<Response, Infallible>>>
fn post() -> Option<fn(Self, Request) -> BoxFuture<'static, Result<Response, Infallible>>>
fn import() -> Option<MethodFunction<Self>>
fn mkcalendar() -> Option<fn(Self, Request) -> BoxFuture<'static, Result<Response, Infallible>>>
fn mkcol() -> Option<fn(Self, Request) -> BoxFuture<'static, Result<Response, Infallible>>>
fn put() -> Option<fn(Self, Request<Body>) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Infallible>> + Send>>>
fn allow_header() -> Allow
Source§impl<C: CalendarStore, S: SubscriptionStore> Clone for CalendarResourceService<C, S>
impl<C: CalendarStore, S: SubscriptionStore> Clone for CalendarResourceService<C, S>
Source§impl<C: CalendarStore, S: SubscriptionStore> ResourceService for CalendarResourceService<C, S>
impl<C: CalendarStore, S: SubscriptionStore> ResourceService for CalendarResourceService<C, S>
const DAV_HEADER: &str = "1, 3, access-control, calendar-access, webdav-push"
type MemberType = CalendarObjectResource
type PathComponents = (String, String)
type Resource = CalendarResource
type Error = Error
type Principal = Principal
type PrincipalUri = CalDavPrincipalUri
fn get_resource<'life0, 'life1, 'async_trait>(
&'life0 self,
(principal, cal_id): &'life1 Self::PathComponents,
show_deleted: bool,
) -> Pin<Box<dyn Future<Output = Result<Self::Resource, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_members<'life0, 'life1, 'async_trait>(
&'life0 self,
(principal, cal_id): &'life1 Self::PathComponents,
) -> Pin<Box<dyn Future<Output = Result<Vec<Self::MemberType>, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_resource<'life0, 'life1, 'async_trait>(
&'life0 self,
(principal, cal_id): &'life1 Self::PathComponents,
file: Self::Resource,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_resource<'life0, 'life1, 'async_trait>(
&'life0 self,
(principal, cal_id): &'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 axum_router<State: Send + Sync + Clone + 'static>(self) -> Router<State>
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>
Auto Trait Implementations§
impl<C, S> Freeze for CalendarResourceService<C, S>
impl<C, S> RefUnwindSafe for CalendarResourceService<C, S>where
C: RefUnwindSafe,
S: RefUnwindSafe,
impl<C, S> Send for CalendarResourceService<C, S>
impl<C, S> Sync for CalendarResourceService<C, S>
impl<C, S> Unpin for CalendarResourceService<C, S>
impl<C, S> UnwindSafe for CalendarResourceService<C, S>where
C: RefUnwindSafe,
S: 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