pub struct ComposedLevel {
pub view: String,
pub projection: Option<String>,
pub where_clause: Option<WhereClause>,
pub order_by: Option<Vec<OrderByClause>>,
pub limit: Option<u32>,
pub offset: Option<u32>,
pub keyset: Option<ComposedKeyset>,
pub keys: LevelKeys,
pub embeds: Vec<ComposedEmbed>,
}Expand description
One level of a composed read: a relation, filtered, ordered and paged, with the levels embedded beneath it.
Fields§
§view: StringThe view this level reads.
projection: Option<String>The SELECT expression for this level’s document, in place of data.
Only the root carries one, and only for a value the stored document does not
hold — a nearest distance (#959). The expression is evaluated against this
level’s own relation.
where_clause: Option<WhereClause>Security conditions AND-ed with the client filter, exactly as a flat read of the same query would compose them. The correlation to the parent is not in here: it is a column reference, not a value, and the renderer adds it.
order_by: Option<Vec<OrderByClause>>This level’s ordering, or None for the relation’s own order.
limit: Option<u32>This level’s page size.
offset: Option<u32>This level’s page offset.
keyset: Option<ComposedKeyset>A keyset page in place of an offset one: how a Relay connection pages. Only the
root can carry one, and not with an offset; the renderer refuses anything else.
keys: LevelKeysWhat this level’s document is allowed to carry.
embeds: Vec<ComposedEmbed>The levels embedded into each row of this one.
Trait Implementations§
Source§impl Clone for ComposedLevel
impl Clone for ComposedLevel
Source§fn clone(&self) -> ComposedLevel
fn clone(&self) -> ComposedLevel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more