pub struct FinalCommonTypesSchema;Expand description
Structural schema admission for the final common wire slice.
It validates exact spellings and direction-sensitive metadata without converting peer input into a locally authorized resource, icon, or cancellation action.
Implementations§
Source§impl FinalCommonTypesSchema
impl FinalCommonTypesSchema
Sourcepub const FINAL_URI_OWNERS: [&'static str; 12]
pub const FINAL_URI_OWNERS: [&'static str; 12]
The exact final-schema URI owners; Icon.src has a separately typed raw icon source.
Sourcepub fn validate(
direction: CommonWireDirection,
wire: &Value,
) -> Result<(), CommonTypeError>
pub fn validate( direction: CommonWireDirection, wire: &Value, ) -> Result<(), CommonTypeError>
Validates a final common wire object for its declared direction.
Sourcepub fn validate_icon(wire: &Value) -> Result<RawIcon, CommonTypeError>
pub fn validate_icon(wire: &Value) -> Result<RawIcon, CommonTypeError>
Validates the raw icon wire shape while preserving absent versus present-empty sizes.
Sourcepub fn canonical_json(wire: &Value) -> Result<String, CommonTypeError>
pub fn canonical_json(wire: &Value) -> Result<String, CommonTypeError>
Produces the deterministic JSON form used by frozen golden-wire records.
Sourcepub fn validate_golden(
direction: CommonWireDirection,
wire: &Value,
golden: &str,
) -> Result<(), CommonTypeError>
pub fn validate_golden( direction: CommonWireDirection, wire: &Value, golden: &str, ) -> Result<(), CommonTypeError>
Validates a wire object and requires its canonical JSON to equal the frozen golden.
Trait Implementations§
Source§impl Clone for FinalCommonTypesSchema
impl Clone for FinalCommonTypesSchema
Source§fn clone(&self) -> FinalCommonTypesSchema
fn clone(&self) -> FinalCommonTypesSchema
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 moreimpl Copy for FinalCommonTypesSchema
Source§impl Debug for FinalCommonTypesSchema
impl Debug for FinalCommonTypesSchema
Source§impl Default for FinalCommonTypesSchema
impl Default for FinalCommonTypesSchema
Source§fn default() -> FinalCommonTypesSchema
fn default() -> FinalCommonTypesSchema
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FinalCommonTypesSchema
impl RefUnwindSafe for FinalCommonTypesSchema
impl Send for FinalCommonTypesSchema
impl Sync for FinalCommonTypesSchema
impl Unpin for FinalCommonTypesSchema
impl UnsafeUnpin for FinalCommonTypesSchema
impl UnwindSafe for FinalCommonTypesSchema
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
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).