pub struct DavMethodSet(/* private fields */);
Expand description
A set of allowed DavMethod
s.
Implementations§
Source§impl DavMethodSet
impl DavMethodSet
pub const HTTP_RO: DavMethodSet
pub const HTTP_RW: DavMethodSet
pub const WEBDAV_RO: DavMethodSet
pub const WEBDAV_RW: DavMethodSet
Sourcepub fn all() -> DavMethodSet
pub fn all() -> DavMethodSet
New set, all methods allowed.
Sourcepub fn none() -> DavMethodSet
pub fn none() -> DavMethodSet
New empty set.
Sourcepub fn from_vec(v: Vec<impl AsRef<str>>) -> Result<DavMethodSet, InvalidMethod>
pub fn from_vec(v: Vec<impl AsRef<str>>) -> Result<DavMethodSet, InvalidMethod>
Generate an DavMethodSet from a list of words.
Trait Implementations§
Source§impl Clone for DavMethodSet
impl Clone for DavMethodSet
Source§fn clone(&self) -> DavMethodSet
fn clone(&self) -> DavMethodSet
Returns a duplicate of the value. Read more
1.0.0 · 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 DavMethodSet
impl Debug for DavMethodSet
impl Copy for DavMethodSet
Auto Trait Implementations§
impl Freeze for DavMethodSet
impl RefUnwindSafe for DavMethodSet
impl Send for DavMethodSet
impl Sync for DavMethodSet
impl Unpin for DavMethodSet
impl UnwindSafe for DavMethodSet
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