pub struct WireSchema {
pub columns: Vec<Box<str>>,
pub primary_key: Vec<u32>,
pub sort: Vec<(u32, bool)>,
pub singular: bool,
pub relationships: Vec<WireRel>,
}Expand description
One level of the hierarchical view schema, wire-shaped. See the module docs.
Fields§
§columns: Vec<Box<str>>Column names, in order; wire rows are positional against this list.
primary_key: Vec<u32>Primary-key column indices (into columns).
sort: Vec<(u32, bool)>The resolved, PK-completed sort: (col_idx, ascending) pairs — the comparator
input the receiver binary-searches with (FLAT-CHANGES-DESIGN.md §4/§5.2).
singular: bool.one() presentation flag — single object vs array at the result boundary.
Not used to build the (always-plural) reconstruction tree (§3); carried so a
receiver can reproduce .one() unwrapping at read time.
relationships: Vec<WireRel>Relationships in slot order (one entry per declared slot).
Implementations§
Source§impl WireSchema
impl WireSchema
Sourcepub fn fingerprint(&self) -> SchemaFp
pub fn fingerprint(&self) -> SchemaFp
This schema’s content fingerprint (FLAT-CHANGES-DESIGN.md §5.5). See schema_fp.
Trait Implementations§
Source§impl Clone for WireSchema
impl Clone for WireSchema
Source§fn clone(&self) -> WireSchema
fn clone(&self) -> WireSchema
Returns a duplicate of the value. Read more
1.0.0 · 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 WireSchema
impl Debug for WireSchema
Source§impl<'de> Deserialize<'de> for WireSchema
impl<'de> Deserialize<'de> for WireSchema
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WireSchema
impl PartialEq for WireSchema
Source§impl Serialize for WireSchema
impl Serialize for WireSchema
impl Eq for WireSchema
impl StructuralPartialEq for WireSchema
Auto Trait Implementations§
impl Freeze for WireSchema
impl RefUnwindSafe for WireSchema
impl Send for WireSchema
impl Sync for WireSchema
impl Unpin for WireSchema
impl UnsafeUnpin for WireSchema
impl UnwindSafe for WireSchema
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