pub struct DavConfig { /* private fields */ }
Expand description
Configuration of the handler.
Implementations§
Source§impl DavConfig
impl DavConfig
Sourcepub fn build_handler(self) -> DavHandler
pub fn build_handler(self) -> DavHandler
Use the configuration that was built to generate a DavConfig.
Sourcepub fn strip_prefix(self, prefix: impl Into<String>) -> Self
pub fn strip_prefix(self, prefix: impl Into<String>) -> Self
Prefix to be stripped off before translating the rest of the request path to a filesystem path.
Sourcepub fn filesystem(self, fs: Box<dyn DavFileSystem>) -> Self
pub fn filesystem(self, fs: Box<dyn DavFileSystem>) -> Self
Set the filesystem to use.
Sourcepub fn locksystem(self, ls: Box<dyn DavLockSystem>) -> Self
pub fn locksystem(self, ls: Box<dyn DavLockSystem>) -> Self
Set the locksystem to use.
Sourcepub fn methods(self, allow: DavMethodSet) -> Self
pub fn methods(self, allow: DavMethodSet) -> Self
Which methods to allow (default is all methods).
Sourcepub fn principal(self, principal: impl Into<String>) -> Self
pub fn principal(self, principal: impl Into<String>) -> Self
Set the name of the “webdav principal”. This will be the owner of any created locks.
Sourcepub fn hide_symlinks(self, hide: bool) -> Self
pub fn hide_symlinks(self, hide: bool) -> Self
Hide symbolic links (default is true)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DavConfig
impl !RefUnwindSafe for DavConfig
impl Send for DavConfig
impl Sync for DavConfig
impl Unpin for DavConfig
impl !UnwindSafe for DavConfig
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