pub struct TableAddress {
pub heading: Option<Value>,
pub ordinal: Option<Value>,
}Expand description
Which table an op is about.
A bare heading string is accepted as shorthand for the same reason the ordered row form is (§6.2): a nested object the model has to assemble is friction, and the measured failure was the model omitting the address altogether. Both fields hold the raw JSON the caller sent, unchecked.
check_heading and check_ordinal are statements inside the oracle’s
resolve_table, not part of extracting the address — _address(a) only
unstrings the value, strips quotes from its keys, and checks the outer
shape. Checking the fields here instead would put a bad heading ahead of a
malformed values, which is the wrong refusal. Found by the apply_op
differential cases, on the run that added arguments failing two checks at
once.
Fields§
§heading: Option<Value>§ordinal: Option<Value>Implementations§
Trait Implementations§
Source§impl Clone for TableAddress
impl Clone for TableAddress
Source§fn clone(&self) -> TableAddress
fn clone(&self) -> TableAddress
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 TableAddress
impl Debug for TableAddress
Source§impl Default for TableAddress
impl Default for TableAddress
Source§fn default() -> TableAddress
fn default() -> TableAddress
Returns the “default value” for a type. Read more
Source§impl From<&str> for TableAddress
impl From<&str> for TableAddress
Source§impl PartialEq for TableAddress
impl PartialEq for TableAddress
impl StructuralPartialEq for TableAddress
Auto Trait Implementations§
impl Freeze for TableAddress
impl RefUnwindSafe for TableAddress
impl Send for TableAddress
impl Sync for TableAddress
impl Unpin for TableAddress
impl UnsafeUnpin for TableAddress
impl UnwindSafe for TableAddress
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