pub struct SchemaConnection {
pub name: String,
pub from_table: String,
pub from_field: String,
pub to_table: String,
pub cardinality: String,
pub required: bool,
pub on_delete: String,
pub label: String,
pub model_path: Option<String>,
pub reverse_field: Option<String>,
pub edge_table: Option<String>,
pub target_trait: Option<String>,
}Expand description
Connection/relationship definition from schema DSL.
Fields§
§name: String§from_table: String§from_field: String§to_table: String§cardinality: String§required: bool§on_delete: String§label: String§model_path: Option<String>§reverse_field: Option<String>§edge_table: Option<String>§target_trait: Option<String>Trait Implementations§
Source§impl Clone for SchemaConnection
impl Clone for SchemaConnection
Source§fn clone(&self) -> SchemaConnection
fn clone(&self) -> SchemaConnection
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 SchemaConnection
impl Debug for SchemaConnection
Source§impl<'de> Deserialize<'de> for SchemaConnection
impl<'de> Deserialize<'de> for SchemaConnection
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 From<SchemaEdge> for SchemaConnection
impl From<SchemaEdge> for SchemaConnection
Source§fn from(edge: SchemaEdge) -> Self
fn from(edge: SchemaEdge) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SchemaConnection
impl RefUnwindSafe for SchemaConnection
impl Send for SchemaConnection
impl Sync for SchemaConnection
impl Unpin for SchemaConnection
impl UnsafeUnpin for SchemaConnection
impl UnwindSafe for SchemaConnection
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