pub struct PathDefaults {
uid: Option<usize>,
gid: Option<usize>,
mode: Option<String>,
path_type: Option<PathType>,
}
Expand description
Represents a /set
line in an MTREE file.
This struct also internally serves as the representation of default values that’re passed to all following path type lines.
Fields§
§uid: Option<usize>
§gid: Option<usize>
§mode: Option<String>
§path_type: Option<PathType>
Implementations§
Source§impl PathDefaults
impl PathDefaults
Sourcefn apply_set(&mut self, properties: Vec<SetProperty<'_>>)
fn apply_set(&mut self, properties: Vec<SetProperty<'_>>)
Apply a parsed /set
statement’s properties onto the current set of PathDefaults.
Sourcefn apply_unset(&mut self, properties: Vec<UnsetProperty>)
fn apply_unset(&mut self, properties: Vec<UnsetProperty>)
Apply a parsed /unset
statement’s properties onto the current set of PathDefaults.
Trait Implementations§
Source§impl Clone for PathDefaults
impl Clone for PathDefaults
Source§fn clone(&self) -> PathDefaults
fn clone(&self) -> PathDefaults
Returns a copy of the value. Read more
1.0.0 · 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 PathDefaults
impl Debug for PathDefaults
Source§impl Default for PathDefaults
impl Default for PathDefaults
Source§fn default() -> PathDefaults
fn default() -> PathDefaults
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PathDefaults
impl RefUnwindSafe for PathDefaults
impl Send for PathDefaults
impl Sync for PathDefaults
impl Unpin for PathDefaults
impl UnwindSafe for PathDefaults
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