pub struct CollaborationOperationEnvelope {
pub discussion_id: DiscussionRecordId,
pub parents: Vec<CollabOpId>,
pub idempotency_key: CollaborationIdempotencyKey,
pub author: Attribution,
pub occurred_at_ms: i64,
pub body: CollaborationOperationBodyV1,
}Fields§
§discussion_id: DiscussionRecordId§parents: Vec<CollabOpId>§idempotency_key: CollaborationIdempotencyKey§occurred_at_ms: i64§body: CollaborationOperationBodyV1Implementations§
Source§impl CollaborationOperationEnvelope
impl CollaborationOperationEnvelope
pub fn new( discussion_id: DiscussionRecordId, parents: Vec<CollabOpId>, idempotency_key: CollaborationIdempotencyKey, author: Attribution, occurred_at_ms: i64, body: CollaborationOperationBodyV1, ) -> Result<Self, CollaborationCodecError>
pub fn encode(&self) -> Result<Vec<u8>, CollaborationCodecError>
pub fn decode( bytes: &[u8], ) -> Result<DecodedCollaborationOperation, CollaborationCodecError>
Trait Implementations§
Source§impl Clone for CollaborationOperationEnvelope
impl Clone for CollaborationOperationEnvelope
Source§fn clone(&self) -> CollaborationOperationEnvelope
fn clone(&self) -> CollaborationOperationEnvelope
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 moreSource§impl<'de> Deserialize<'de> for CollaborationOperationEnvelope
impl<'de> Deserialize<'de> for CollaborationOperationEnvelope
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 CollaborationOperationEnvelope
impl StructuralPartialEq for CollaborationOperationEnvelope
Auto Trait Implementations§
impl Freeze for CollaborationOperationEnvelope
impl RefUnwindSafe for CollaborationOperationEnvelope
impl Send for CollaborationOperationEnvelope
impl Sync for CollaborationOperationEnvelope
impl Unpin for CollaborationOperationEnvelope
impl UnsafeUnpin for CollaborationOperationEnvelope
impl UnwindSafe for CollaborationOperationEnvelope
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