pub struct NavigationMetadata {
pub rust_field: &'static str,
pub kind: NavigationKind,
pub target_rust_name: &'static str,
pub target_schema: &'static str,
pub target_table: &'static str,
pub local_columns: &'static [&'static str],
pub target_columns: &'static [&'static str],
pub foreign_key_name: Option<&'static str>,
}Expand description
Navigation property metadata attached to an entity.
Fields§
§rust_field: &'static str§kind: NavigationKind§target_rust_name: &'static str§target_schema: &'static str§target_table: &'static str§local_columns: &'static [&'static str]§target_columns: &'static [&'static str]§foreign_key_name: Option<&'static str>Implementations§
pub const fn new( rust_field: &'static str, kind: NavigationKind, target_rust_name: &'static str, target_schema: &'static str, target_table: &'static str, local_columns: &'static [&'static str], target_columns: &'static [&'static str], foreign_key_name: Option<&'static str>, ) -> Self
pub fn targets_table(&self, schema: &str, table: &str) -> bool
pub fn uses_foreign_key(&self, foreign_key_name: &str) -> bool
Trait Implementations§
Source§fn clone(&self) -> NavigationMetadata
fn clone(&self) -> NavigationMetadata
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§fn eq(&self, other: &NavigationMetadata) -> bool
fn eq(&self, other: &NavigationMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
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