pub enum StateAttachmentKind {
Context,
RiskSignals,
ReviewSignatures,
Discussions,
StructuredConflicts,
SemanticIndex,
Signature,
}Expand description
The kind of a StateAttachmentBody, with the payload projected away.
Kind is a pure function of the record: StateAttachmentBody::kind maps a
body to its kind with no I/O and no ambiguity. This is the primitive that
currency (last-attachment-of-a-kind) and supersession (same-kind guard) are
expressed in terms of, and that the wire layer threads through
wire::ObjectId (heddle#1080, Fable §B(1)).
Variants§
Trait Implementations§
Source§impl Clone for StateAttachmentKind
impl Clone for StateAttachmentKind
Source§fn clone(&self) -> StateAttachmentKind
fn clone(&self) -> StateAttachmentKind
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 moreimpl Copy for StateAttachmentKind
Source§impl Debug for StateAttachmentKind
impl Debug for StateAttachmentKind
Source§impl<'de> Deserialize<'de> for StateAttachmentKind
impl<'de> Deserialize<'de> for StateAttachmentKind
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
impl Eq for StateAttachmentKind
Source§impl Hash for StateAttachmentKind
impl Hash for StateAttachmentKind
Source§impl PartialEq for StateAttachmentKind
impl PartialEq for StateAttachmentKind
Source§impl Serialize for StateAttachmentKind
impl Serialize for StateAttachmentKind
impl StructuralPartialEq for StateAttachmentKind
Auto Trait Implementations§
impl Freeze for StateAttachmentKind
impl RefUnwindSafe for StateAttachmentKind
impl Send for StateAttachmentKind
impl Sync for StateAttachmentKind
impl Unpin for StateAttachmentKind
impl UnsafeUnpin for StateAttachmentKind
impl UnwindSafe for StateAttachmentKind
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