pub enum Relation {
Join(Join),
Aggregate(Aggregate),
}Expand description
Variants§
Join(Join)
Fold the related rows in as nested documents, projecting fields from
each one.
Aggregate(Aggregate)
Reduce the related rows to a single scalar.
Implementations§
Source§impl Relation
impl Relation
pub fn table(&self) -> &TableName
Sourcepub fn key(&self) -> RelationKey<'_>
pub fn key(&self) -> RelationKey<'_>
The key tying the related rows and the parent row together.
Sourcepub fn on(&self) -> &[ColumnPair]
pub fn on(&self) -> &[ColumnPair]
Sourcepub fn parent_on(&self) -> &[ColumnPair]
pub fn parent_on(&self) -> &[ColumnPair]
The pairs whose local column sits on the parent row: the first
via hop’s, or the relation’s own when it has no via.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Relation
impl<'de> Deserialize<'de> for Relation
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
Auto Trait Implementations§
impl Forget for Relation
impl Freeze for Relation
impl Move for Relation
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnsafeUnpin for Relation
impl UnwindSafe for Relation
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