pub struct JsonSchemaWrapper(pub Value);Expand description
A thin wrapper around serde_json::Value representing a JSON Schema.
This newtype exists to allow future validation hooks and schema
manipulation to be added without changing the public API of EndpointMeta.
Tuple Fields§
§0: ValueTrait Implementations§
Source§impl Clone for JsonSchemaWrapper
impl Clone for JsonSchemaWrapper
Source§fn clone(&self) -> JsonSchemaWrapper
fn clone(&self) -> JsonSchemaWrapper
Returns a duplicate of the value. Read more
1.0.0 · 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 JsonSchemaWrapper
impl Debug for JsonSchemaWrapper
Source§impl<'de> Deserialize<'de> for JsonSchemaWrapper
impl<'de> Deserialize<'de> for JsonSchemaWrapper
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<JsonSchemaWrapper> for Value
impl From<JsonSchemaWrapper> for Value
Source§fn from(wrapper: JsonSchemaWrapper) -> Value
fn from(wrapper: JsonSchemaWrapper) -> Value
Unwrap a JsonSchemaWrapper back into its inner serde_json::Value.
Source§impl From<Value> for JsonSchemaWrapper
impl From<Value> for JsonSchemaWrapper
Source§fn from(value: Value) -> Self
fn from(value: Value) -> Self
Wrap a raw serde_json::Value into a JsonSchemaWrapper.
Auto Trait Implementations§
impl Freeze for JsonSchemaWrapper
impl RefUnwindSafe for JsonSchemaWrapper
impl Send for JsonSchemaWrapper
impl Sync for JsonSchemaWrapper
impl Unpin for JsonSchemaWrapper
impl UnsafeUnpin for JsonSchemaWrapper
impl UnwindSafe for JsonSchemaWrapper
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