pub struct PrincipalResource { /* private fields */ }Trait Implementations§
Source§impl Clone for PrincipalResource
impl Clone for PrincipalResource
Source§fn clone(&self) -> PrincipalResource
fn clone(&self) -> PrincipalResource
Returns a duplicate 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 Debug for PrincipalResource
impl Debug for PrincipalResource
Source§impl Resource for PrincipalResource
impl Resource for PrincipalResource
type Prop = PrincipalPropWrapper
type Error = Error
type Principal = Principal
fn is_collection(&self) -> bool
fn get_resourcetype(&self) -> Resourcetype
fn get_prop( &self, puri: &impl PrincipalUri, user: &Principal, prop: &PrincipalPropWrapperName, ) -> Result<Self::Prop, Self::Error>
fn get_displayname(&self) -> Option<&str>
fn get_owner(&self) -> Option<&str>
fn get_user_privileges( &self, user: &Principal, ) -> Result<UserPrivilegeSet, Self::Error>
fn list_props() -> Vec<(Option<Namespace<'static>>, &'static str)>
fn set_prop(&mut self, _prop: Self::Prop) -> Result<(), Error>
fn remove_prop( &mut self, _prop: &<Self::Prop as PropName>::Names, ) -> Result<(), Error>
fn set_displayname(&mut self, _name: Option<String>) -> Result<(), Error>
fn get_etag(&self) -> Option<String>
fn satisfies_if_match(&self, if_match: &IfMatch) -> bool
fn satisfies_if_none_match(&self, if_none_match: &IfNoneMatch) -> bool
fn parse_propfind( body: &str, ) -> Result<PropfindElement<<Self::Prop as PropName>::Names>, XmlError>
fn propfind( &self, path: &str, prop: &PropfindType<<Self::Prop as PropName>::Names>, include: Option<&PropElement<<Self::Prop as PropName>::Names>>, principal_uri: &impl PrincipalUri, principal: &Self::Principal, ) -> Result<ResponseElement<Self::Prop>, Self::Error>
Source§impl ResourceName for PrincipalResource
impl ResourceName for PrincipalResource
Auto Trait Implementations§
impl Freeze for PrincipalResource
impl RefUnwindSafe for PrincipalResource
impl Send for PrincipalResource
impl Sync for PrincipalResource
impl Unpin for PrincipalResource
impl UnwindSafe for PrincipalResource
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,
Source§impl<R> CommonPropertiesExtension for Rwhere
R: Resource,
impl<R> CommonPropertiesExtension for Rwhere
R: Resource,
fn get_prop( &self, principal_uri: &impl PrincipalUri, principal: &Self::Principal, prop: &CommonPropertiesPropName, ) -> Result<CommonPropertiesProp, Self::Error>
fn set_prop(&mut self, prop: CommonPropertiesProp) -> Result<(), Error>
fn remove_prop(&mut self, prop: &CommonPropertiesPropName) -> Result<(), Error>
§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