pub struct LoadedSchema {
pub bytes: Vec<u8>,
pub document: Value,
}Expand description
A channel’s JSON Schema document as loaded from disk during config validation.
Carries both the parsed document (fed to the validation engine when the channel is built) and the raw file bytes (hashed into the protocol schema id advertised at subscribe time, so an SDK deriving ids from the same schema bytes converges).
Fields§
§bytes: Vec<u8>Raw bytes of the schema file, hashed to derive the protocol schema id.
document: ValueParsed JSON Schema document, fed to the channel’s validation engine.
Trait Implementations§
Source§impl Clone for LoadedSchema
impl Clone for LoadedSchema
Source§fn clone(&self) -> LoadedSchema
fn clone(&self) -> LoadedSchema
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 moreAuto Trait Implementations§
impl Freeze for LoadedSchema
impl RefUnwindSafe for LoadedSchema
impl Send for LoadedSchema
impl Sync for LoadedSchema
impl Unpin for LoadedSchema
impl UnsafeUnpin for LoadedSchema
impl UnwindSafe for LoadedSchema
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