pub enum FileModification {
Rename(String),
Move(AbsolutePathOwned),
SetCreateTime(Date),
SetModifyTime(Date),
SetMode(u32),
SetOwner(Did),
TagsInsert(Tags),
TagsRemove(Tags),
SetContents(Cid, u64),
SetLink(PathOwned),
}Variants§
Rename(String)
Rename node to.
Move(AbsolutePathOwned)
Move node into path (as children).
SetCreateTime(Date)
Set create time.
SetModifyTime(Date)
Set modify time.
SetMode(u32)
Set mode.
SetOwner(Did)
Set owner.
TagsInsert(Tags)
Insert tags.
TagsRemove(Tags)
Remove tags.
SetContents(Cid, u64)
Set file contents.
Only applicable to Node::File.
SetLink(PathOwned)
Set link target.
Only applicable to Node::Link.
Trait Implementations§
Source§impl Clone for FileModification
impl Clone for FileModification
Source§fn clone(&self) -> FileModification
fn clone(&self) -> FileModification
Returns a duplicate 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 FileModification
impl Debug for FileModification
Source§impl<'de> Deserialize<'de> for FileModification
impl<'de> Deserialize<'de> for FileModification
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
Source§impl Hash for FileModification
impl Hash for FileModification
Source§impl Ord for FileModification
impl Ord for FileModification
Source§fn cmp(&self, other: &FileModification) -> Ordering
fn cmp(&self, other: &FileModification) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FileModification
impl PartialEq for FileModification
Source§impl PartialOrd for FileModification
impl PartialOrd for FileModification
Source§impl Serialize for FileModification
impl Serialize for FileModification
impl Eq for FileModification
impl StructuralPartialEq for FileModification
Auto Trait Implementations§
impl Freeze for FileModification
impl RefUnwindSafe for FileModification
impl Send for FileModification
impl Sync for FileModification
impl Unpin for FileModification
impl UnsafeUnpin for FileModification
impl UnwindSafe for FileModification
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more