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
-por--preserveis given without arguments, useAttributes::DEFAULT, - if
-a/--archiveis passed, useAttributes::ALL, - if
-dis 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: PreserveImplementations§
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