pub struct DavResource {
pub href: String,
pub is_collection: bool,
pub etag: Option<String>,
pub content_length: Option<u64>,
pub content_type: Option<String>,
pub file_id: Option<String>,
pub has_preview: Option<bool>,
}Expand description
One entry of a multistatus answer.
Optional fields stay None both when the server omitted the property and
when it sent a value this crate could not read; the two are not
distinguished, so a caller must treat None as “unknown”, never as
“false” or “zero”.
Fields§
§href: StringPath of the resource as the server reported it, usually
percent-encoded and including /remote.php/dav.
is_collection: boolWhether the resource is a collection (<d:collection/>).
etag: Option<String>d:getetag, verbatim including any quoting the server sent.
content_length: Option<u64>d:getcontentlength, in bytes.
content_type: Option<String>d:getcontenttype.
file_id: Option<String>oc:fileid.
has_preview: Option<bool>nc:has-preview.
Trait Implementations§
Source§impl Clone for DavResource
impl Clone for DavResource
Source§impl Debug for DavResource
impl Debug for DavResource
Source§impl Display for DavResource
impl Display for DavResource
impl Eq for DavResource
Source§impl PartialEq for DavResource
impl PartialEq for DavResource
impl StructuralPartialEq for DavResource
Auto Trait Implementations§
impl Freeze for DavResource
impl RefUnwindSafe for DavResource
impl Send for DavResource
impl Sync for DavResource
impl Unpin for DavResource
impl UnsafeUnpin for DavResource
impl UnwindSafe for DavResource
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