pub enum ArtifactOperation {
Write {
path: String,
content: String,
},
Diff {
path: String,
patch: String,
},
Delete {
path: String,
},
Move {
from: String,
to: String,
},
}Expand description
PSP-5: A single artifact operation within an artifact bundle
Each operation represents one file mutation: either a full write or a diff patch.
Variants§
Write
Write the full file contents
Diff
Apply a unified diff patch
Delete
Delete a file from the workspace
Move
Move/rename a file within the workspace
Implementations§
Trait Implementations§
Source§impl Clone for ArtifactOperation
impl Clone for ArtifactOperation
Source§fn clone(&self) -> ArtifactOperation
fn clone(&self) -> ArtifactOperation
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 ArtifactOperation
impl Debug for ArtifactOperation
Source§impl<'de> Deserialize<'de> for ArtifactOperation
impl<'de> Deserialize<'de> for ArtifactOperation
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 ArtifactOperation
impl RefUnwindSafe for ArtifactOperation
impl Send for ArtifactOperation
impl Sync for ArtifactOperation
impl Unpin for ArtifactOperation
impl UnsafeUnpin for ArtifactOperation
impl UnwindSafe for ArtifactOperation
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