pub struct DavRequestHead {
pub method: DavMethod,
pub target: DavPath,
pub origin: DavRequestOrigin,
pub depth: Option<Depth>,
pub overwrite: Option<bool>,
pub destination: Option<Destination>,
pub if_header: Option<IfHeader>,
}Expand description
Parsed, body-independent WebDAV request data.
Fields§
§method: DavMethod§target: DavPath§origin: DavRequestOrigin§depth: Option<Depth>§overwrite: Option<bool>§destination: Option<Destination>§if_header: Option<IfHeader>Implementations§
Source§impl DavRequestHead
impl DavRequestHead
Sourcepub fn parse(
method: DavMethod,
uri: &Uri,
headers: &HeaderMap,
mount_path: &str,
origin: &DavRequestOrigin,
) -> Result<Self, DavProtocolError>
pub fn parse( method: DavMethod, uri: &Uri, headers: &HeaderMap, mount_path: &str, origin: &DavRequestOrigin, ) -> Result<Self, DavProtocolError>
Parses protocol headers and the mount-relative target before product code is called.
Trait Implementations§
Source§impl Clone for DavRequestHead
impl Clone for DavRequestHead
Source§fn clone(&self) -> DavRequestHead
fn clone(&self) -> DavRequestHead
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 DavRequestHead
impl Debug for DavRequestHead
Source§impl PartialEq for DavRequestHead
impl PartialEq for DavRequestHead
Source§fn eq(&self, other: &DavRequestHead) -> bool
fn eq(&self, other: &DavRequestHead) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DavRequestHead
impl StructuralPartialEq for DavRequestHead
Auto Trait Implementations§
impl Freeze for DavRequestHead
impl RefUnwindSafe for DavRequestHead
impl Send for DavRequestHead
impl Sync for DavRequestHead
impl Unpin for DavRequestHead
impl UnsafeUnpin for DavRequestHead
impl UnwindSafe for DavRequestHead
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.