pub struct FileWriteArgs {
pub path: String,
pub content: String,
pub append: bool,
}Expand description
Input parameters for FileWrite::execute.
The target file is backed up before any write occurs, making the operation reversible through the undo system.
Fields§
§path: StringAbsolute path to the file to write.
content: StringContent to write (overwrites existing content unless append is set).
append: boolWhen true, append to the file instead of overwriting.
Trait Implementations§
Source§impl Clone for FileWriteArgs
impl Clone for FileWriteArgs
Source§fn clone(&self) -> FileWriteArgs
fn clone(&self) -> FileWriteArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FileWriteArgs
impl Debug for FileWriteArgs
Source§impl<'de> Deserialize<'de> for FileWriteArgs
impl<'de> Deserialize<'de> for FileWriteArgs
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
Auto Trait Implementations§
impl Freeze for FileWriteArgs
impl RefUnwindSafe for FileWriteArgs
impl Send for FileWriteArgs
impl Sync for FileWriteArgs
impl Unpin for FileWriteArgs
impl UnsafeUnpin for FileWriteArgs
impl UnwindSafe for FileWriteArgs
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