pub struct RelationRegistry { /* private fields */ }Expand description
Registry of relation definitions, keyed by source table name.
Implementations§
Source§impl RelationRegistry
impl RelationRegistry
Sourcepub fn register(&mut self, source_table: &str, relations: Vec<RelationDef>)
pub fn register(&mut self, source_table: &str, relations: Vec<RelationDef>)
Register relations for a source table (overwrites prior entry).
Sourcepub fn get(&self, source_table: &str) -> Option<&[RelationDef]>
pub fn get(&self, source_table: &str) -> Option<&[RelationDef]>
Relations for a source table, if any.
Trait Implementations§
Source§impl Clone for RelationRegistry
impl Clone for RelationRegistry
Source§fn clone(&self) -> RelationRegistry
fn clone(&self) -> RelationRegistry
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 RelationRegistry
impl Debug for RelationRegistry
Auto Trait Implementations§
impl Freeze for RelationRegistry
impl RefUnwindSafe for RelationRegistry
impl Send for RelationRegistry
impl Sync for RelationRegistry
impl Unpin for RelationRegistry
impl UnsafeUnpin for RelationRegistry
impl UnwindSafe for RelationRegistry
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