pub struct SchemaHandle { /* private fields */ }Expand description
Cached JSON schema handle associated with a response type.
Implementations§
Source§impl SchemaHandle
impl SchemaHandle
pub fn from_root_schema<T: 'static>( schema_name: &'static str, type_name: &'static str, root: RootSchema, ) -> Self
pub fn schema_name(&self) -> &'static str
pub fn type_name(&self) -> &'static str
pub fn type_id(&self) -> TypeId
pub fn schema_json(&self) -> &Value
pub fn schema_json_arc(&self) -> Arc<Value> ⓘ
Trait Implementations§
Source§impl Clone for SchemaHandle
impl Clone for SchemaHandle
Auto Trait Implementations§
impl Freeze for SchemaHandle
impl RefUnwindSafe for SchemaHandle
impl Send for SchemaHandle
impl Sync for SchemaHandle
impl Unpin for SchemaHandle
impl UnsafeUnpin for SchemaHandle
impl UnwindSafe for SchemaHandle
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