pub enum StreamBatchOperation {
Insert {
id: String,
html: String,
at: StreamPosition,
},
Delete {
id: String,
},
}Expand description
One stream operation used by stream_batch.
Variants§
Trait Implementations§
Source§impl Clone for StreamBatchOperation
impl Clone for StreamBatchOperation
Source§fn clone(&self) -> StreamBatchOperation
fn clone(&self) -> StreamBatchOperation
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 StreamBatchOperation
impl Debug for StreamBatchOperation
Source§impl<'de> Deserialize<'de> for StreamBatchOperation
impl<'de> Deserialize<'de> for StreamBatchOperation
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 StreamBatchOperation
impl PartialEq for StreamBatchOperation
Source§fn eq(&self, other: &StreamBatchOperation) -> bool
fn eq(&self, other: &StreamBatchOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StreamBatchOperation
impl Serialize for StreamBatchOperation
impl StructuralPartialEq for StreamBatchOperation
Auto Trait Implementations§
impl Freeze for StreamBatchOperation
impl RefUnwindSafe for StreamBatchOperation
impl Send for StreamBatchOperation
impl Sync for StreamBatchOperation
impl Unpin for StreamBatchOperation
impl UnsafeUnpin for StreamBatchOperation
impl UnwindSafe for StreamBatchOperation
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