pub struct RelationChange {
pub operation: ChangeOp,
pub relation: Relation,
}Expand description
A change event for a graph relation (edge).
Used when a PostgreSQL join/relation table row is inserted, updated, or
deleted and needs to be synced as a SurrealDB RELATE or DELETE operation.
Fields§
§operation: ChangeOpThe operation type (Create/Update/Delete)
relation: RelationThe relation data (contains relation_type, id, input, output, data)
Implementations§
Trait Implementations§
Source§impl Clone for RelationChange
impl Clone for RelationChange
Source§fn clone(&self) -> RelationChange
fn clone(&self) -> RelationChange
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 RelationChange
impl Debug for RelationChange
Source§impl<'de> Deserialize<'de> for RelationChange
impl<'de> Deserialize<'de> for RelationChange
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
Auto Trait Implementations§
impl Freeze for RelationChange
impl RefUnwindSafe for RelationChange
impl Send for RelationChange
impl Sync for RelationChange
impl Unpin for RelationChange
impl UnsafeUnpin for RelationChange
impl UnwindSafe for RelationChange
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