pub struct Schema { /* private fields */ }Expand description
A schema handle returned by Encoder::register_schema or created via
Schema::new.
Carries the full schema definition (name + fields) so it can auto-register
itself with any encoder on first use. This means a Schema created on one
encoder can be passed to a different encoder and it will just work.
Schema is cheap to clone (internally Arc-backed).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnsafeUnpin for Schema
impl UnwindSafe for Schema
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