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
impl DavPathRef
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.