pub enum LinkTableOp {
Link {
table: String,
local_columns: Vec<String>,
local_values: Vec<Value>,
remote_columns: Vec<String>,
remote_values: Vec<Value>,
},
Unlink {
table: String,
local_columns: Vec<String>,
local_values: Vec<Value>,
remote_columns: Vec<String>,
remote_values: Vec<Value>,
},
}Expand description
A pending link table operation (for many-to-many relationships).
Variants§
Implementations§
Source§impl LinkTableOp
impl LinkTableOp
Sourcepub fn link(
table: impl Into<String>,
local_column: impl Into<String>,
local_value: Value,
remote_column: impl Into<String>,
remote_value: Value,
) -> Self
pub fn link( table: impl Into<String>, local_column: impl Into<String>, local_value: Value, remote_column: impl Into<String>, remote_value: Value, ) -> Self
Create a link operation.
Sourcepub fn unlink(
table: impl Into<String>,
local_column: impl Into<String>,
local_value: Value,
remote_column: impl Into<String>,
remote_value: Value,
) -> Self
pub fn unlink( table: impl Into<String>, local_column: impl Into<String>, local_value: Value, remote_column: impl Into<String>, remote_value: Value, ) -> Self
Create an unlink operation.
Sourcepub fn link_multi(
table: impl Into<String>,
local_columns: Vec<String>,
local_values: Vec<Value>,
remote_columns: Vec<String>,
remote_values: Vec<Value>,
) -> Self
pub fn link_multi( table: impl Into<String>, local_columns: Vec<String>, local_values: Vec<Value>, remote_columns: Vec<String>, remote_values: Vec<Value>, ) -> Self
Create a link operation for composite keys.
Sourcepub fn unlink_multi(
table: impl Into<String>,
local_columns: Vec<String>,
local_values: Vec<Value>,
remote_columns: Vec<String>,
remote_values: Vec<Value>,
) -> Self
pub fn unlink_multi( table: impl Into<String>, local_columns: Vec<String>, local_values: Vec<Value>, remote_columns: Vec<String>, remote_values: Vec<Value>, ) -> Self
Create an unlink operation for composite keys.
Trait Implementations§
Source§impl Clone for LinkTableOp
impl Clone for LinkTableOp
Source§fn clone(&self) -> LinkTableOp
fn clone(&self) -> LinkTableOp
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for LinkTableOp
impl RefUnwindSafe for LinkTableOp
impl Send for LinkTableOp
impl Sync for LinkTableOp
impl Unpin for LinkTableOp
impl UnsafeUnpin for LinkTableOp
impl UnwindSafe for LinkTableOp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).