pub struct Edit {
pub write: Vec<Node>,
pub delete: Vec<String>,
pub renamed: Vec<(String, String)>,
}Expand description
What a rename changes: write each node in write (by its id) and remove the files of the ids in delete.
Fields§
§write: Vec<Node>Nodes to write, each under its id.
delete: Vec<String>Ids whose files should be removed.
renamed: Vec<(String, String)>(old id, new id) for each node that was renamed, so a client can put the new file beside the old one
Trait Implementations§
impl StructuralPartialEq for Edit
Auto Trait Implementations§
impl Freeze for Edit
impl RefUnwindSafe for Edit
impl Send for Edit
impl Sync for Edit
impl Unpin for Edit
impl UnsafeUnpin for Edit
impl UnwindSafe for Edit
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