pub struct Properties(/* private fields */);
Expand description
The prop
XML element as defined in RFC 4918.
This element can contain arbitrary child elements and supports extracting
them using Properties::get()
.
Implementations§
Source§impl Properties
impl Properties
Source§impl Properties
impl Properties
Sourcepub fn get<'v, P>(&'v self) -> Option<Option<Result<P, Error>>>
pub fn get<'v, P>(&'v self) -> Option<Option<Result<P, Error>>>
Read a specific property from this prop
element.
Returns
None
if the property doesn’t existSome(None)
if the property exists and is emptySome(Some(Ok(_)))
if the property exists and was successfully extractedSome(Some(Err(_)))
if the property exists and extraction failed
Sourcepub fn names(&self) -> impl Iterator<Item = &ElementName<ByteString>>
pub fn names(&self) -> impl Iterator<Item = &ElementName<ByteString>>
List the names of the properties in this prop
element.
Source§impl Properties
impl Properties
Sourcepub fn creationdate(&self) -> Option<Option<Result<CreationDate, Error>>>
pub fn creationdate(&self) -> Option<Option<Result<CreationDate, Error>>>
Read the creationdate
property.
See Properties::get()
for an overview of the possible return values.
Sourcepub fn displayname(&self) -> Option<Option<Result<DisplayName, Error>>>
pub fn displayname(&self) -> Option<Option<Result<DisplayName, Error>>>
Read the displayname
property.
See Properties::get()
for an overview of the possible return values.
Sourcepub fn getcontentlanguage(
&self,
) -> Option<Option<Result<ContentLanguage, Error>>>
pub fn getcontentlanguage( &self, ) -> Option<Option<Result<ContentLanguage, Error>>>
Read the getcontentlanguage
property.
See Properties::get()
for an overview of the possible return values.
Sourcepub fn getcontentlength(&self) -> Option<Option<Result<ContentLength, Error>>>
pub fn getcontentlength(&self) -> Option<Option<Result<ContentLength, Error>>>
Read the getcontentlength
property.
See Properties::get()
for an overview of the possible return values.
Sourcepub fn getcontenttype(&self) -> Option<Option<Result<ContentType, Error>>>
pub fn getcontenttype(&self) -> Option<Option<Result<ContentType, Error>>>
Read the getcontenttype
property.
See Properties::get()
for an overview of the possible return values.
Sourcepub fn getetag(&self) -> Option<Option<Result<ETag, Error>>>
pub fn getetag(&self) -> Option<Option<Result<ETag, Error>>>
Read the getetag
property.
See Properties::get()
for an overview of the possible return values.
Sourcepub fn getlastmodified(&self) -> Option<Option<Result<LastModified, Error>>>
pub fn getlastmodified(&self) -> Option<Option<Result<LastModified, Error>>>
Read the getlastmodified
property.
See Properties::get()
for an overview of the possible return values.
Sourcepub fn lockdiscovery(&self) -> Option<Option<Result<LockDiscovery, Error>>>
pub fn lockdiscovery(&self) -> Option<Option<Result<LockDiscovery, Error>>>
Read the lockdiscovery
property.
See Properties::get()
for an overview of the possible return values.
Sourcepub fn resourcetype(&self) -> Option<Option<Result<ResourceType, Error>>>
pub fn resourcetype(&self) -> Option<Option<Result<ResourceType, Error>>>
Read the resourcetype
property.
See Properties::get()
for an overview of the possible return values.
Sourcepub fn supportedlock(&self) -> Option<Option<Result<SupportedLock, Error>>>
pub fn supportedlock(&self) -> Option<Option<Result<SupportedLock, Error>>>
Read the supportedlock
property.
See Properties::get()
for an overview of the possible return values.
Trait Implementations§
Source§impl Clone for Properties
impl Clone for Properties
Source§fn clone(&self) -> Properties
fn clone(&self) -> Properties
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Properties
impl Debug for Properties
Source§impl Default for Properties
impl Default for Properties
Source§fn default() -> Properties
fn default() -> Properties
Source§impl Element for Properties
impl Element for Properties
Source§const LOCAL_NAME: &'static str = "prop"
const LOCAL_NAME: &'static str = "prop"
multistatus