pub struct RootResourceService<PRS: ResourceService + Clone, P: Principal, PURI: PrincipalUri>(/* private fields */);
Implementations§
Source§impl<PRS: ResourceService + Clone, P: Principal, PURI: PrincipalUri> RootResourceService<PRS, P, PURI>
impl<PRS: ResourceService + Clone, P: Principal, PURI: PrincipalUri> RootResourceService<PRS, P, PURI>
Trait Implementations§
Source§impl<PRS: ResourceService<Principal = P> + Clone, P: Principal, PURI: PrincipalUri> AxumMethods for RootResourceService<PRS, P, PURI>
impl<PRS: ResourceService<Principal = P> + Clone, P: Principal, PURI: PrincipalUri> AxumMethods for RootResourceService<PRS, P, PURI>
fn report() -> Option<MethodFunction<Self>>
fn get() -> Option<MethodFunction<Self>>
fn post() -> Option<MethodFunction<Self>>
fn mkcol() -> Option<MethodFunction<Self>>
fn mkcalendar() -> Option<MethodFunction<Self>>
fn put() -> Option<MethodFunction<Self>>
fn allow_header() -> Allow
Source§impl<PRS: Clone + ResourceService + Clone, P: Clone + Principal, PURI: Clone + PrincipalUri> Clone for RootResourceService<PRS, P, PURI>
impl<PRS: Clone + ResourceService + Clone, P: Clone + Principal, PURI: Clone + PrincipalUri> Clone for RootResourceService<PRS, P, PURI>
Source§fn clone(&self) -> RootResourceService<PRS, P, PURI>
fn clone(&self) -> RootResourceService<PRS, P, PURI>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<PRS: ResourceService<Principal = P> + Clone, P: Principal + FromRequestParts<Self>, PURI: PrincipalUri> ResourceService for RootResourceService<PRS, P, PURI>where
PRS::Resource: ResourceName,
impl<PRS: ResourceService<Principal = P> + Clone, P: Principal + FromRequestParts<Self>, PURI: PrincipalUri> ResourceService for RootResourceService<PRS, P, PURI>where
PRS::Resource: ResourceName,
const DAV_HEADER: &str = "1, 3, access-control"
type PathComponents = ()
type MemberType = <PRS as ResourceService>::Resource
type Resource = RootResource<<PRS as ResourceService>::Resource, P>
type Error = <PRS as ResourceService>::Error
type Principal = P
type PrincipalUri = PURI
fn get_resource<'life0, 'life1, 'async_trait>(
&'life0 self,
_: &'life1 (),
_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 axum_router<S: Send + Sync + Clone + 'static>(self) -> Router<S>
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
Self: 'async_trait,
'life0: 'async_trait,
'life1: '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
Self: 'async_trait,
'life0: 'async_trait,
'life1: '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
Self: 'async_trait,
'life0: 'async_trait,
'life1: '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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: '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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn axum_service(self) -> AxumService<Self>where
Self: AxumMethods,
Auto Trait Implementations§
impl<PRS, P, PURI> Freeze for RootResourceService<PRS, P, PURI>where
PRS: Freeze,
impl<PRS, P, PURI> RefUnwindSafe for RootResourceService<PRS, P, PURI>
impl<PRS, P, PURI> Send for RootResourceService<PRS, P, PURI>
impl<PRS, P, PURI> Sync for RootResourceService<PRS, P, PURI>
impl<PRS, P, PURI> Unpin for RootResourceService<PRS, P, PURI>
impl<PRS, P, PURI> UnwindSafe for RootResourceService<PRS, P, PURI>
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