pub enum FileDirective {
New {
file_path: String,
content: Content,
},
Patch {
file_path: String,
content: Content,
},
Append {
file_path: String,
content: Content,
},
Rename {
from_path: String,
to_path: String,
},
Delete {
file_path: String,
},
Fail {
kind: String,
file_path: Option<String>,
error_msg: String,
},
}Variants§
Trait Implementations§
Source§impl Clone for FileDirective
impl Clone for FileDirective
Source§fn clone(&self) -> FileDirective
fn clone(&self) -> FileDirective
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 FileDirective
impl Debug for FileDirective
Source§impl From<&FileDirective> for DirectiveStatus
impl From<&FileDirective> for DirectiveStatus
Source§fn from(directive: &FileDirective) -> Self
fn from(directive: &FileDirective) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FileDirective
impl RefUnwindSafe for FileDirective
impl Send for FileDirective
impl Sync for FileDirective
impl Unpin for FileDirective
impl UnsafeUnpin for FileDirective
impl UnwindSafe for FileDirective
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