[−][src]Struct webdav_handler::davpath::DavPath
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]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,