pub struct Namespace {
pub uri: &'static str,
pub prefix: &'static str,
}Expand description
An XML namespace: its URI plus the preferred prefix used when serializing request bodies (the empty prefix means the default namespace).
Each RFC layer owns the namespaces it speaks (DAV: in
crate::rfc4918, CalDAV ones in crate::rfc4791, CardDAV ones
in crate::rfc6352); the generic body generators only read these
fields, so they never need to know which namespaces exist.
Fields§
§uri: &'static strNamespace URI (e.g. DAV:).
prefix: &'static strPreferred XML prefix ("" for the default namespace).
Trait Implementations§
impl Copy for Namespace
impl Eq for Namespace
impl StructuralPartialEq for Namespace
Auto Trait Implementations§
impl Freeze for Namespace
impl RefUnwindSafe for Namespace
impl Send for Namespace
impl Sync for Namespace
impl Unpin for Namespace
impl UnsafeUnpin for Namespace
impl UnwindSafe for Namespace
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