pub struct CanonicalInputModel {
pub fields: Vec<CanonicalInputField>,
pub record_schema: SchemaGraph,
}Expand description
The full canonical input record shape of one command: the ordered fields and the self-contained record schema (definitions projected from the tool’s shared graph to those reachable from the record).
Fields§
§fields: Vec<CanonicalInputField>§record_schema: SchemaGraphImplementations§
Source§impl CanonicalInputModel
impl CanonicalInputModel
Sourcepub fn decode_record(
&self,
value: SchemaValue,
) -> Result<Vec<CanonicalInputValue>, CanonicalInputDecodeError>
pub fn decode_record( &self, value: SchemaValue, ) -> Result<Vec<CanonicalInputValue>, CanonicalInputDecodeError>
Splits a record value into per-field CanonicalInputValues following
this model’s field order.
Trait Implementations§
Source§impl Clone for CanonicalInputModel
impl Clone for CanonicalInputModel
Source§fn clone(&self) -> CanonicalInputModel
fn clone(&self) -> CanonicalInputModel
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 CanonicalInputModel
impl Debug for CanonicalInputModel
Source§impl PartialEq for CanonicalInputModel
impl PartialEq for CanonicalInputModel
impl StructuralPartialEq for CanonicalInputModel
Auto Trait Implementations§
impl Freeze for CanonicalInputModel
impl RefUnwindSafe for CanonicalInputModel
impl Send for CanonicalInputModel
impl Sync for CanonicalInputModel
impl Unpin for CanonicalInputModel
impl UnsafeUnpin for CanonicalInputModel
impl UnwindSafe for CanonicalInputModel
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