Struct dav_server::DavMethodSet
source · pub struct DavMethodSet(_);Expand description
A set of allowed DavMethods.
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 copy 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 more