pub struct Relationship {
pub constraint_name: String,
pub source_schema: String,
pub source_table: String,
pub source_columns: Vec<String>,
pub target_schema: String,
pub target_table: String,
pub target_columns: Vec<String>,
pub cardinality: Cardinality,
pub junction: Option<Junction>,
}Fields§
§constraint_name: String§source_schema: String§source_table: String§source_columns: Vec<String>§target_schema: String§target_table: String§target_columns: Vec<String>§cardinality: Cardinality§junction: Option<Junction>Implementations§
Source§impl Relationship
impl Relationship
pub fn new( constraint_name: impl Into<String>, source_schema: impl Into<String>, source_table: impl Into<String>, target_schema: impl Into<String>, target_table: impl Into<String>, cardinality: Cardinality, ) -> Self
pub fn with_source_columns(self, columns: Vec<String>) -> Self
pub fn with_target_columns(self, columns: Vec<String>) -> Self
pub fn with_junction(self, junction: Junction) -> Self
Trait Implementations§
Source§impl Clone for Relationship
impl Clone for Relationship
Source§fn clone(&self) -> Relationship
fn clone(&self) -> Relationship
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 moreSource§impl Debug for Relationship
impl Debug for Relationship
Source§impl<'de> Deserialize<'de> for Relationship
impl<'de> Deserialize<'de> for Relationship
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 Relationship
impl PartialEq for Relationship
Source§impl Serialize for Relationship
impl Serialize for Relationship
impl StructuralPartialEq for Relationship
Auto Trait Implementations§
impl Freeze for Relationship
impl RefUnwindSafe for Relationship
impl Send for Relationship
impl Sync for Relationship
impl Unpin for Relationship
impl UnwindSafe for Relationship
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