pub struct Operation { /* private fields */ }Expand description
What a transaction does, for its commit message and trailers.
Implementations§
Source§impl Operation
impl Operation
Sourcepub fn new(op: impl Into<String>, summary: impl Into<String>) -> Self
pub fn new(op: impl Into<String>, summary: impl Into<String>) -> Self
op is the Surjection-Op value (server.add); summary the commit
subject (server: add github). The scope defaults to system.
Sourcepub fn entity(self, entity: impl Into<String>) -> Self
pub fn entity(self, entity: impl Into<String>) -> Self
Adds a Surjection-Entity (server/github). A bulk change adds one per
entity.
pub fn scope(self, scope: Scope) -> Self
Trait Implementations§
impl Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Forget for Operation
impl Freeze for Operation
impl Move for Operation
impl RefUnwindSafe for Operation
impl Send for Operationwhere
RawVecInner: Send,
impl Sync for Operationwhere
RawVecInner: Sync,
impl Unpin for Operation
impl UnsafeUnpin for Operationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Operationwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.