[][src]Struct webdav_handler::DavConfig

pub struct DavConfig {
    pub prefix: Option<String>,
    pub fs: Option<Box<dyn DavFileSystem>>,
    pub ls: Option<Box<dyn DavLockSystem>>,
    pub allow: Option<AllowedMethods>,
    pub principal: Option<String>,
    pub hide_symlinks: Option<bool>,
}

Configuration of the handler.

Fields

prefix: Option<String>

Prefix to be stripped off when handling request.

fs: Option<Box<dyn DavFileSystem>>

Filesystem backend.

ls: Option<Box<dyn DavLockSystem>>

Locksystem backend.

allow: Option<AllowedMethods>

Set of allowed methods (None means "all methods")

principal: Option<String>

Principal is webdav speak for "user", used to give locks an owner (if a locksystem is active).

hide_symlinks: Option<bool>

Hide symbolic links? None maps to true.

Trait Implementations

impl Default for DavConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self