[][src]Struct webdav_handler::davpath::DavPath

pub struct DavPath { /* fields omitted */ }

URL path, with hidden prefix.

Methods

impl DavPath[src]

pub fn new(src: &str) -> Result<DavPath, ParseError>[src]

from URL encoded path

pub fn set_prefix(&mut self, prefix: &str) -> Result<(), ParseError>[src]

Set prefix.

pub fn with_prefix(&self) -> &DavPathRef[src]

Return a DavPathRef that refers to the entire URL path with prefix.

pub fn from_uri(uri: &Uri) -> Result<Self, ParseError>[src]

from request.uri

pub fn prefix(&self) -> &str[src]

return the URL prefix.

Methods from Deref<Target = DavPathRef>

pub fn as_utf8_string(&self) -> String[src]

as utf8 string, with prefix. uses String::from_utf8_lossy.

pub fn as_bytes(&self) -> &[u8][src]

as raw bytes, not encoded, no prefix.

pub fn as_pathbuf(&self) -> PathBuf[src]

as OS specific Path. never ends in "/".

pub fn as_url_string(&self) -> String[src]

as URL encoded string, with prefix.

pub fn is_collection(&self) -> bool[src]

is this a collection i.e. does the original URL path end in "/".

Trait Implementations

impl Clone for DavPath[src]

impl Debug for DavPath[src]

impl Deref for DavPath[src]

type Target = DavPathRef

The resulting type after dereferencing.

impl Display for DavPath[src]

impl PartialEq<DavPath> for DavPath[src]

Comparision ignores any trailing slash, so /foo == /foo/

Auto Trait Implementations

impl RefUnwindSafe for DavPath

impl Send for DavPath

impl Sync for DavPath

impl Unpin for DavPath

impl UnwindSafe for DavPath

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = !

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<V, T> VZip<V> for T where
    V: MultiLane<T>,