pub struct ListedResource {
pub href: String,
pub status: Option<StatusCode>,
pub content_type: Option<String>,
pub etag: Option<String>,
pub resource_type: ResourceType,
}Expand description
Metadata for a resource.
This type is returned when listing resources. It contains metadata on resources but no the resource data itself.
Fields§
§href: StringThe path component to a collection.
Should be treated as an opaque string. Only reserved characters are percent-encoded.
status: Option<StatusCode>Status code for this resource, as returned by the server.
content_type: Option<String>The value of the Content-Type header, if any.
etag: Option<String>The entity tag reflecting the version of the fetched resource.
See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag
resource_type: ResourceTypeDAV-specific resource type.
This field is subject to change.
Trait Implementations§
Source§impl Debug for ListedResource
impl Debug for ListedResource
Source§impl PartialEq for ListedResource
impl PartialEq for ListedResource
impl StructuralPartialEq for ListedResource
Auto Trait Implementations§
impl Freeze for ListedResource
impl RefUnwindSafe for ListedResource
impl Send for ListedResource
impl Sync for ListedResource
impl Unpin for ListedResource
impl UnwindSafe for ListedResource
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
Source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.