pub enum Mutation<'a> {
Set(&'a str, &'a [u8]),
Delete(&'a str),
Pin(&'a str, Oid, FileMode),
}Expand description
A mutation to apply to a record’s fields.
Variants§
Set(&'a str, &'a [u8])
Upsert a field.
Delete(&'a str)
Delete a field.
Pin(&'a str, Oid, FileMode)
Insert a tree entry pointing at an existing git object with the given file mode.
Auto Trait Implementations§
impl<'a> Freeze for Mutation<'a>
impl<'a> RefUnwindSafe for Mutation<'a>
impl<'a> Send for Mutation<'a>
impl<'a> Sync for Mutation<'a>
impl<'a> Unpin for Mutation<'a>
impl<'a> UnsafeUnpin for Mutation<'a>
impl<'a> UnwindSafe for Mutation<'a>
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