pub enum EmbedShape {
Many,
One,
Count,
}Expand description
How an embedded level is attached to each row of its parent.
Variants§
Many
A JSON array of the related rows, [] when there are none.
One
The one related row, or null.
The join key is unique on the target — a to-one relationship whose key is not is refused when the schema loads — so there is at most one row to return.
Count
The number of related rows. The level’s page, ordering, keys and embeds do not apply to a count.
Trait Implementations§
Source§impl Clone for EmbedShape
impl Clone for EmbedShape
Source§fn clone(&self) -> EmbedShape
fn clone(&self) -> EmbedShape
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 moreimpl Copy for EmbedShape
Source§impl Debug for EmbedShape
impl Debug for EmbedShape
impl Eq for EmbedShape
Source§impl PartialEq for EmbedShape
impl PartialEq for EmbedShape
impl StructuralPartialEq for EmbedShape
Auto Trait Implementations§
impl Freeze for EmbedShape
impl RefUnwindSafe for EmbedShape
impl Send for EmbedShape
impl Sync for EmbedShape
impl Unpin for EmbedShape
impl UnsafeUnpin for EmbedShape
impl UnwindSafe for EmbedShape
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.