pub struct ResponseEntry {
pub href: String,
pub status: Option<u16>,
pub props: Vec<PropItem>,
}Expand description
A single <response> inside a Multistatus: its href plus the
properties returned under 2xx propstats.
Fields§
§href: StringThe <href> text, as returned by the server.
status: Option<u16>The response-level <status> code, when present. Carries the
404 of a sync-collection removal row (RFC 6578 §3.4) or the
507 of a truncation row (RFC 6578 §3.6); None on ordinary
propstat-only responses.
props: Vec<PropItem>Properties gathered from every 2xx <propstat> of this response.
Implementations§
Source§impl ResponseEntry
impl ResponseEntry
Sourcepub fn prop(&self, prop: Property) -> Option<&PropItem>
pub fn prop(&self, prop: Property) -> Option<&PropItem>
Returns the property matching prop (by local name), if present.
Sourcepub fn text(&self, prop: Property) -> Option<&str>
pub fn text(&self, prop: Property) -> Option<&str>
Returns prop’s trimmed text content when present and non-empty.
Sourcepub fn has_resource_type(&self, resourcetype: Property, ty: Property) -> bool
pub fn has_resource_type(&self, resourcetype: Property, ty: Property) -> bool
Returns true when <resourcetype> lists ty as a child
(e.g. <C:calendar/>).
Trait Implementations§
Source§impl Clone for ResponseEntry
impl Clone for ResponseEntry
Source§fn clone(&self) -> ResponseEntry
fn clone(&self) -> ResponseEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResponseEntry
impl Debug for ResponseEntry
Source§impl Default for ResponseEntry
impl Default for ResponseEntry
Source§fn default() -> ResponseEntry
fn default() -> ResponseEntry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ResponseEntry
impl RefUnwindSafe for ResponseEntry
impl Send for ResponseEntry
impl Sync for ResponseEntry
impl Unpin for ResponseEntry
impl UnsafeUnpin for ResponseEntry
impl UnwindSafe for ResponseEntry
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