pub struct EmbedSelection {
pub relationship: String,
pub output_key: String,
pub fields: Vec<String>,
pub filter: Option<Value>,
pub limit: Option<u32>,
pub embeds: Vec<EmbedSelection>,
pub counts: Vec<CountSelection>,
}Expand description
A relationship to embed into each row of the level above it.
Fields§
§relationship: StringThe relationship’s name on the parent type.
output_key: StringThe key the embedded value is written under — the relationship’s name, or the client’s rename.
fields: Vec<String>The target type’s fields to return, in the order they were asked for.
filter: Option<Value>The client’s filter on the related rows, in the {field: {op: value}} shape a
where argument takes. Composed with the target’s own security predicate the
way a filter on a flat read of the target is, so it can only narrow.
limit: Option<u32>The page each parent row gets of related rows. Capped by max_page_size, as any
read’s page is.
embeds: Vec<EmbedSelection>Relationships to embed into each related row.
counts: Vec<CountSelection>Relationships to count for each related row.
Trait Implementations§
Source§impl Clone for EmbedSelection
impl Clone for EmbedSelection
Source§impl Debug for EmbedSelection
impl Debug for EmbedSelection
Source§impl Default for EmbedSelection
impl Default for EmbedSelection
impl Eq for EmbedSelection
Source§impl PartialEq for EmbedSelection
impl PartialEq for EmbedSelection
impl StructuralPartialEq for EmbedSelection
Auto Trait Implementations§
impl Freeze for EmbedSelection
impl RefUnwindSafe for EmbedSelection
impl Send for EmbedSelection
impl Sync for EmbedSelection
impl Unpin for EmbedSelection
impl UnsafeUnpin for EmbedSelection
impl UnwindSafe for EmbedSelection
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.