pub struct Schema {
pub name: String,
pub type_name: TypeName,
pub properties: Option<Vec<Reference>>,
pub json: String,
}
Expand description
Represents a schema with a name, type, optional properties, and JSON representation.
Fields§
§name: String
§type_name: TypeName
§properties: Option<Vec<Reference>>
§json: String
Implementations§
Source§impl Schema
impl Schema
Sourcepub fn new_anydata(json: String) -> Self
pub fn new_anydata(json: String) -> Self
Sourcepub fn new_integer(name: String, json: String) -> Self
pub fn new_integer(name: String, json: String) -> Self
Sourcepub fn new_literal(name: String, value: String, json: String) -> Self
pub fn new_literal(name: String, value: String, json: String) -> Self
Sourcepub fn new_nullable(name: String, reference: String, json: String) -> Self
pub fn new_nullable(name: String, reference: String, json: String) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Schema
impl<'de> Deserialize<'de> for Schema
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
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin 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