pub struct ComputedRelationship {
pub table: QualifiedIdentifier,
pub function: QualifiedIdentifier,
pub foreign_table: QualifiedIdentifier,
pub table_alias: QualifiedIdentifier,
pub is_self: bool,
pub single_row: bool,
}Expand description
Computed relationship (function-based)
A relationship defined by a function that takes a row from the source table and returns related rows.
Fields§
§table: QualifiedIdentifierSource table
function: QualifiedIdentifierFunction that computes the relationship
foreign_table: QualifiedIdentifierTarget table (return type of the function)
table_alias: QualifiedIdentifierAlias for the source table in the function context
is_self: boolWhether this is a self-referencing relationship
single_row: boolWhether the function returns a single row
Implementations§
Source§impl ComputedRelationship
impl ComputedRelationship
Sourcepub fn returns_set(&self) -> bool
pub fn returns_set(&self) -> bool
Check if this computed relationship returns multiple rows
Trait Implementations§
Source§impl Clone for ComputedRelationship
impl Clone for ComputedRelationship
Source§fn clone(&self) -> ComputedRelationship
fn clone(&self) -> ComputedRelationship
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 ComputedRelationship
impl Debug for ComputedRelationship
Source§impl From<ComputedRelationship> for AnyRelationship
impl From<ComputedRelationship> for AnyRelationship
Source§fn from(r: ComputedRelationship) -> Self
fn from(r: ComputedRelationship) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ComputedRelationship
impl RefUnwindSafe for ComputedRelationship
impl Send for ComputedRelationship
impl Sync for ComputedRelationship
impl Unpin for ComputedRelationship
impl UnsafeUnpin for ComputedRelationship
impl UnwindSafe for ComputedRelationship
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