DavPathRef

Struct DavPathRef 

Source
pub struct DavPathRef { /* private fields */ }
Expand description

Reference to DavPath, no prefix. It’s what you get when you Deref DavPath, and returned by DavPath::with_prefix().

Implementations§

Source§

impl DavPathRef

Source

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

as raw bytes, not encoded, no prefix.

Source

pub fn as_pathbuf(&self) -> PathBuf

as OS specific Path. never ends in “/”.

Source

pub fn as_url_string(&self) -> String

as URL encoded string, with prefix.

Source

pub fn is_collection(&self) -> bool

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

Source

pub fn as_rel_ospath(&self) -> &Path

as OS specific Path, relative (remove first slash)

Used to push() onto a pathbuf.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more