pub struct OptimisticAggregate {
pub aggregate_table: String,
pub table: String,
pub child_field: Vec<String>,
pub key_field: Vec<String>,
pub aggregate: Aggregate,
pub predicate: Option<RowPredicate>,
pub grouped: bool,
}Expand description
OptimisticAggregate: how a mutation of a child row moves a synced
aggregate’s row. Registered when a query with a relationship aggregate or
a grouping materializes.
Fields§
§aggregate_table: StringThe aggregate’s table, aggregate:<queryID>:<alias> or …:#group.
table: StringThe child table whose mutations move it.
child_field: Vec<String>The correlation (or group) columns of a child row, by client name.
key_field: Vec<String>The same columns as the aggregate rows name them: server names.
aggregate: Aggregate§predicate: Option<RowPredicate>The aggregate’s where as a row predicate; None when every child
row counts.
grouped: boolThe rows are a grouped query’s groups, keyed by _0_key: a group is
added with its first row and removed with its last.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for OptimisticAggregate
impl !Send for OptimisticAggregate
impl !Sync for OptimisticAggregate
impl !UnwindSafe for OptimisticAggregate
impl Forget for OptimisticAggregate
impl Freeze for OptimisticAggregate
impl Move for OptimisticAggregate
impl Unpin for OptimisticAggregate
impl UnsafeUnpin for OptimisticAggregate
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