pub enum FileAction {
Create {
path: AbsolutePathOwned,
node: Node,
recursive: bool,
},
Remove {
path: AbsolutePathOwned,
recursive: bool,
},
Modify {
path: AbsolutePathOwned,
modifications: Vec<FileModification>,
},
}Variants§
Create
Create a node. Ignored if a node with the same name already exists at path.
Fields
§
path: AbsolutePathOwnedThe parent to create the node in.
Remove
Remove a node. If a node has children and recusive is set to false nothing will happen.
Modify
Modify a node.
Trait Implementations§
Source§impl Clone for FileAction
impl Clone for FileAction
Source§fn clone(&self) -> FileAction
fn clone(&self) -> FileAction
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 FileAction
impl Debug for FileAction
Source§impl<'de> Deserialize<'de> for FileAction
impl<'de> Deserialize<'de> for FileAction
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 FileAction
impl Hash for FileAction
Source§impl Ord for FileAction
impl Ord for FileAction
Source§fn cmp(&self, other: &FileAction) -> Ordering
fn cmp(&self, other: &FileAction) -> 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 FileAction
impl PartialEq for FileAction
Source§impl PartialOrd for FileAction
impl PartialOrd for FileAction
Source§impl Reducer<FileAction> for File
impl Reducer<FileAction> for File
async fn reduce( state: OptionLink<Self>, event: Link<ReducerAction<FileAction>>, storage: &CoreBlockStorage, ) -> Result<Link<Self>, Error>
Source§impl Serialize for FileAction
impl Serialize for FileAction
impl Eq for FileAction
impl StructuralPartialEq for FileAction
Auto Trait Implementations§
impl Freeze for FileAction
impl RefUnwindSafe for FileAction
impl Send for FileAction
impl Sync for FileAction
impl Unpin for FileAction
impl UnsafeUnpin for FileAction
impl UnwindSafe for FileAction
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