pub enum TreeChange {
Upsert {
path: String,
content: Vec<u8>,
},
Remove {
path: String,
},
}Expand description
A single change to apply to a tree. Moves are modeled at the op-mapping layer
(GWS.8) as Remove(old) + Upsert(new).
Variants§
Upsert
Add a new file or overwrite an existing one with content.
Remove
Remove a file from the tree.
Implementations§
Trait Implementations§
Source§impl Clone for TreeChange
impl Clone for TreeChange
Source§fn clone(&self) -> TreeChange
fn clone(&self) -> TreeChange
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 moreAuto Trait Implementations§
impl Freeze for TreeChange
impl RefUnwindSafe for TreeChange
impl Send for TreeChange
impl Sync for TreeChange
impl Unpin for TreeChange
impl UnsafeUnpin for TreeChange
impl UnwindSafe for TreeChange
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