pub struct PathInfo {
pub path: String,
pub exists: bool,
pub readable: Option<bool>,
pub writable: Option<bool>,
}Expand description
Information about a resolved path
Fields§
§path: StringThe resolved absolute path
exists: boolWhether the path exists
readable: Option<bool>Whether the path is readable (if it exists)
writable: Option<bool>Whether the path is writable (if it exists)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PathInfo
impl<'de> Deserialize<'de> for PathInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PathInfo
impl RefUnwindSafe for PathInfo
impl Send for PathInfo
impl Sync for PathInfo
impl Unpin for PathInfo
impl UnsafeUnpin for PathInfo
impl UnwindSafe for PathInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more