#[non_exhaustive]pub struct ApplyOperationBatchMessage {
pub notebook_id: String,
pub operations: Vec<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.
operations: Vec<Operation>The operations to apply.
revision: u32The revision assigned to the operation.
If a client sends this message, it requests this revision to be assigned and the operations 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 ApplyOperationBatchMessage
impl ApplyOperationBatchMessage
Sourcepub fn builder() -> ApplyOperationBatchMessageBuilder<((), (), (), ())>
pub fn builder() -> ApplyOperationBatchMessageBuilder<((), (), (), ())>
Create a builder for building ApplyOperationBatchMessage.
On the builder, call .notebook_id(...), .operations(...), .revision(...), .op_id(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ApplyOperationBatchMessage.
Trait Implementations§
Source§impl Clone for ApplyOperationBatchMessage
impl Clone for ApplyOperationBatchMessage
Source§fn clone(&self) -> ApplyOperationBatchMessage
fn clone(&self) -> ApplyOperationBatchMessage
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 Debug for ApplyOperationBatchMessage
impl Debug for ApplyOperationBatchMessage
Source§impl<'de> Deserialize<'de> for ApplyOperationBatchMessage
impl<'de> Deserialize<'de> for ApplyOperationBatchMessage
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 StructuralPartialEq for ApplyOperationBatchMessage
Auto Trait Implementations§
impl Freeze for ApplyOperationBatchMessage
impl RefUnwindSafe for ApplyOperationBatchMessage
impl Send for ApplyOperationBatchMessage
impl Sync for ApplyOperationBatchMessage
impl Unpin for ApplyOperationBatchMessage
impl UnsafeUnpin for ApplyOperationBatchMessage
impl UnwindSafe for ApplyOperationBatchMessage
Blanket Implementations§
impl<T> BindgenSerializable for T
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