pub enum WireItemKind {
Change,
Row,
RelationChange,
Relation,
}Expand description
Item payload kind for an External NDJSON exchange.
Workers that only handle row CDC may ignore kind (default / omitted =
WireItemKind::Change). Relation-aware workers must honor kind so
relation batches are not silently treated as row changes.
Variants§
Change
Incremental row surreal_sync_core::Change items.
Row
Full-sync / snapshot surreal_sync_core::Row items.
RelationChange
Incremental relation surreal_sync_core::RelationChange items.
Relation
Full-sync surreal_sync_core::Relation items.
Trait Implementations§
Source§impl Clone for WireItemKind
impl Clone for WireItemKind
Source§fn clone(&self) -> WireItemKind
fn clone(&self) -> WireItemKind
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 moreimpl Copy for WireItemKind
Source§impl Debug for WireItemKind
impl Debug for WireItemKind
Source§impl Default for WireItemKind
impl Default for WireItemKind
Source§fn default() -> WireItemKind
fn default() -> WireItemKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WireItemKind
impl<'de> Deserialize<'de> for WireItemKind
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 WireItemKind
Source§impl PartialEq for WireItemKind
impl PartialEq for WireItemKind
Source§impl Serialize for WireItemKind
impl Serialize for WireItemKind
impl StructuralPartialEq for WireItemKind
Auto Trait Implementations§
impl Freeze for WireItemKind
impl RefUnwindSafe for WireItemKind
impl Send for WireItemKind
impl Sync for WireItemKind
impl Unpin for WireItemKind
impl UnsafeUnpin for WireItemKind
impl UnwindSafe for WireItemKind
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.