pub struct FamilySumCheck {
pub relationship: String,
pub parent_column: String,
pub child_column: String,
}Expand description
A cross-table sum invariant: over the child rows of the
CompiledPlanner::family_child_table that reference a given parent row,
the integer value of child_column sums exactly to the integer value of the
parent’s parent_column. Money columns are compared in currency minor units,
so a verifier normalizes decimal/text renderings to the same fixed scale
before summing.
Fields§
§relationship: StringThe named relationship (declared on the child table) whose foreign key
groups child rows under their parent — the same name
CompiledPlanner::family_relationship returns.
parent_column: StringThe parent aggregate column the child values must sum to.
child_column: StringThe child column summed across every child of a parent row.
Trait Implementations§
Source§impl Clone for FamilySumCheck
impl Clone for FamilySumCheck
Source§fn clone(&self) -> FamilySumCheck
fn clone(&self) -> FamilySumCheck
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 FamilySumCheck
impl Debug for FamilySumCheck
impl Eq for FamilySumCheck
Source§impl PartialEq for FamilySumCheck
impl PartialEq for FamilySumCheck
impl StructuralPartialEq for FamilySumCheck
Auto Trait Implementations§
impl Freeze for FamilySumCheck
impl RefUnwindSafe for FamilySumCheck
impl Send for FamilySumCheck
impl Sync for FamilySumCheck
impl Unpin for FamilySumCheck
impl UnsafeUnpin for FamilySumCheck
impl UnwindSafe for FamilySumCheck
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more