pub struct PathRecord {
pub path: PathBuf,
pub display: String,
pub identity_key: Option<String>,
}Expand description
A path together with optional display text and identity key.
The identity key must never be used as a filesystem path.
Fields§
§path: PathBufPath suitable for filesystem access (when valid on the host).
display: StringUser-facing display string (not an identity key).
identity_key: Option<String>Optional comparison key; never use for filesystem I/O.
Implementations§
Trait Implementations§
Source§impl Clone for PathRecord
impl Clone for PathRecord
Source§fn clone(&self) -> PathRecord
fn clone(&self) -> PathRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PathRecord
impl Debug for PathRecord
impl Eq for PathRecord
Source§impl PartialEq for PathRecord
impl PartialEq for PathRecord
impl StructuralPartialEq for PathRecord
Auto Trait Implementations§
impl Freeze for PathRecord
impl RefUnwindSafe for PathRecord
impl Send for PathRecord
impl Sync for PathRecord
impl Unpin for PathRecord
impl UnsafeUnpin for PathRecord
impl UnwindSafe for PathRecord
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