pub enum AggregateKey {
Direct(ColumnName),
Through(Through),
}Expand description
How an aggregate’s related rows tie back to the parent — a direct FK on the
aggregated table, or a junction table. (Joins carry their key inside
JoinKind; aggregates are inherently over-many, so belongs_to has no
aggregate counterpart.)
Variants§
Direct(ColumnName)
Through(Through)
Trait Implementations§
Source§impl Clone for AggregateKey
impl Clone for AggregateKey
Source§fn clone(&self) -> AggregateKey
fn clone(&self) -> AggregateKey
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 AggregateKey
impl Debug for AggregateKey
Source§impl<'de> Deserialize<'de> for AggregateKey
impl<'de> Deserialize<'de> for AggregateKey
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AggregateKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AggregateKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for AggregateKey
impl Hash for AggregateKey
Source§impl Serialize for AggregateKey
impl Serialize for AggregateKey
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AggregateKey
impl RefUnwindSafe for AggregateKey
impl Send for AggregateKey
impl Sync for AggregateKey
impl Unpin for AggregateKey
impl UnsafeUnpin for AggregateKey
impl UnwindSafe for AggregateKey
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