Struct dav_server::davpath::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
sourceimpl DavPathRef
impl DavPathRef
sourcepub fn as_bytes(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub fn as_bytes(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
as raw bytes, not encoded, no prefix.
sourcepub fn as_pathbuf(&self) -> PathBuf
pub fn as_pathbuf(&self) -> PathBuf
as OS specific Path. never ends in “/”.
sourcepub fn as_url_string(&self) -> String
pub fn as_url_string(&self) -> String
as URL encoded string, with prefix.
sourcepub fn is_collection(&self) -> bool
pub fn is_collection(&self) -> bool
is this a collection i.e. does the original URL path end in “/”.
sourcepub fn as_rel_ospath(&self) -> &Path
pub fn as_rel_ospath(&self) -> &Path
as OS specific Path, relative (remove first slash)
Used to push() onto a pathbuf.