pub struct Command {
pub discussion: DiscussionRecordId,
pub operation_id: CollaborationIdempotencyKey,
pub metadata: CollaborationMetadata,
pub author: Attribution,
pub occurred_at_ms: i64,
pub body: CollaborationOperationBodyV1,
}Expand description
Typed content plus the account identity which the receiving host will bind to its independently verified delivery credential. Display names are not IDs.
Fields§
§discussion: DiscussionRecordId§operation_id: CollaborationIdempotencyKey§metadata: CollaborationMetadata§occurred_at_ms: i64§body: CollaborationOperationBodyV1Implementations§
Source§impl Command
impl Command
Sourcepub fn sign(
self,
parents: &[SignedRecord],
signer: &impl Signer,
) -> Result<SignedRecord, Error>
pub fn sign( self, parents: &[SignedRecord], signer: &impl Signer, ) -> Result<SignedRecord, Error>
Sign after observing original frontier records. Concurrent operations can share parents; observing both lets a subsequent command join both heads. Root commands use an empty parent slice. Never pass mutable view versions.
Sourcepub fn sign_parent_ids(
self,
parent_ids: &[ContentHash],
signer: &impl Signer,
) -> Result<SignedRecord, Error>
pub fn sign_parent_ids( self, parent_ids: &[ContentHash], signer: &impl Signer, ) -> Result<SignedRecord, Error>
Sign after observing discussion heads by original operation id.
Hosted ObserveCollaboration returns turn/open op ids, not the original signed records. Root commands still use an empty parent slice.
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more