Struct uu_cp::Attributes
source · pub struct Attributes {
pub ownership: Preserve,
pub mode: Preserve,
pub timestamps: Preserve,
pub context: Preserve,
pub links: Preserve,
pub xattr: Preserve,
}
Expand description
Preservation settings for various attributes
It should be derived from options as follows:
- if there is a list of attributes to preserve (i.e.
--preserve=ATTR_LIST
) parse that list withAttributes::parse_iter
, - if
-p
or--preserve
is given without arguments, useAttributes::DEFAULT
, - if
-a
/--archive
is passed, useAttributes::ALL
, - if
-d
is passed useAttributes::LINKS
, - otherwise, use
Attributes::NONE
.
For full compatibility with GNU, these options should also combine. We
currently only do a best effort imitation of that behavior, because it is
difficult to achieve in clap, especially with --no-preserve
.
Fields§
§ownership: Preserve
§mode: Preserve
§timestamps: Preserve
§context: Preserve
§links: Preserve
§xattr: Preserve
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Attributes
impl Send for Attributes
impl Sync for Attributes
impl Unpin for Attributes
impl UnwindSafe for Attributes
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