Struct fiberplane_models::realtime::ApplyOperationMessage
source · #[non_exhaustive]pub struct ApplyOperationMessage {
pub notebook_id: String,
pub operation: Operation,
pub revision: u32,
pub op_id: Option<String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.notebook_id: StringID of the notebook.
operation: OperationThe operation to apply.
revision: u32The revision assigned to the operation.
If a client sends this message, it requests this revision to be assigned and the operation may be rejected if the revision is already assigned.
When a client receives this message, it is the actual revision.
op_id: Option<String>Operation ID.
Only messages with an operation ID will receive an Ack from the
server.
Implementations§
source§impl ApplyOperationMessage
impl ApplyOperationMessage
sourcepub fn builder() -> ApplyOperationMessageBuilder<((), (), (), ())>
pub fn builder() -> ApplyOperationMessageBuilder<((), (), (), ())>
Create a builder for building ApplyOperationMessage.
On the builder, call .notebook_id(...), .operation(...), .revision(...), .op_id(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ApplyOperationMessage.
Trait Implementations§
source§impl Clone for ApplyOperationMessage
impl Clone for ApplyOperationMessage
source§fn clone(&self) -> ApplyOperationMessage
fn clone(&self) -> ApplyOperationMessage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ApplyOperationMessage
impl Debug for ApplyOperationMessage
source§impl<'de> Deserialize<'de> for ApplyOperationMessage
impl<'de> Deserialize<'de> for ApplyOperationMessage
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
source§impl PartialEq for ApplyOperationMessage
impl PartialEq for ApplyOperationMessage
source§fn eq(&self, other: &ApplyOperationMessage) -> bool
fn eq(&self, other: &ApplyOperationMessage) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ApplyOperationMessage
impl Serialize for ApplyOperationMessage
impl StructuralPartialEq for ApplyOperationMessage
Auto Trait Implementations§
impl Freeze for ApplyOperationMessage
impl RefUnwindSafe for ApplyOperationMessage
impl Send for ApplyOperationMessage
impl Sync for ApplyOperationMessage
impl Unpin for ApplyOperationMessage
impl UnwindSafe for ApplyOperationMessage
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