pub struct PrincipalResourceService<AP: AuthenticationProvider, S: SubscriptionStore, CS: CalendarStore> { /* private fields */ }Trait Implementations§
Source§impl<AP: AuthenticationProvider, S: SubscriptionStore, CS: CalendarStore> AxumMethods for PrincipalResourceService<AP, S, CS>
impl<AP: AuthenticationProvider, S: SubscriptionStore, CS: CalendarStore> AxumMethods for PrincipalResourceService<AP, S, CS>
fn report() -> Option<fn(Self, Request<Body>) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Infallible>> + Send>>>
fn get() -> 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 put() -> 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<AP: AuthenticationProvider, S: SubscriptionStore, CS: CalendarStore> Clone for PrincipalResourceService<AP, S, CS>
impl<AP: AuthenticationProvider, S: SubscriptionStore, CS: CalendarStore> Clone for PrincipalResourceService<AP, S, CS>
Source§impl<AP: Debug + AuthenticationProvider, S: Debug + SubscriptionStore, CS: Debug + CalendarStore> Debug for PrincipalResourceService<AP, S, CS>
impl<AP: Debug + AuthenticationProvider, S: Debug + SubscriptionStore, CS: Debug + CalendarStore> Debug for PrincipalResourceService<AP, S, CS>
Source§impl<AP: AuthenticationProvider, S: SubscriptionStore, CS: CalendarStore> ResourceService for PrincipalResourceService<AP, S, CS>
impl<AP: AuthenticationProvider, S: SubscriptionStore, CS: CalendarStore> ResourceService for PrincipalResourceService<AP, S, CS>
const DAV_HEADER: &str = "1, 3, access-control, calendar-access"
type PathComponents = (String,)
type MemberType = CalendarResource
type Resource = PrincipalResource
type Error = Error
type Principal = Principal
type PrincipalUri = CalDavPrincipalUri
fn get_resource<'life0, 'life1, 'async_trait>(
&'life0 self,
(principal): &'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 get_members<'life0, 'life1, 'async_trait>(
&'life0 self,
(principal): &'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 axum_router<State: Send + Sync + Clone + 'static>(self) -> Router<State>
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 delete_resource<'life0, 'life1, 'async_trait>(
&'life0 self,
_path: &'life1 Self::PathComponents,
_use_trashbin: bool,
) -> 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>
Auto Trait Implementations§
impl<AP, S, CS> Freeze for PrincipalResourceService<AP, S, CS>
impl<AP, S, CS> RefUnwindSafe for PrincipalResourceService<AP, S, CS>
impl<AP, S, CS> Send for PrincipalResourceService<AP, S, CS>
impl<AP, S, CS> Sync for PrincipalResourceService<AP, S, CS>
impl<AP, S, CS> Unpin for PrincipalResourceService<AP, S, CS>
impl<AP, S, CS> UnwindSafe for PrincipalResourceService<AP, S, CS>
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