pub struct SchemaFile {
pub metadata: Metadata,
pub schema: Option<SchemaDef>,
pub definitions: Option<IndexMap<String, Schema>>,
}
Expand description
A schema file that may contain a top-level schema and related definitions
Fields§
§metadata: Metadata
§schema: Option<SchemaDef>
§definitions: Option<IndexMap<String, Schema>>
Implementations§
Source§impl SchemaFile
impl SchemaFile
Trait Implementations§
Source§impl Clone for SchemaFile
impl Clone for SchemaFile
Source§fn clone(&self) -> SchemaFile
fn clone(&self) -> SchemaFile
Returns a copy 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 SchemaFile
impl Debug for SchemaFile
Source§impl<'de> Deserialize<'de> for SchemaFile
impl<'de> Deserialize<'de> for SchemaFile
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 SchemaFile
impl RefUnwindSafe for SchemaFile
impl Send for SchemaFile
impl Sync for SchemaFile
impl Unpin for SchemaFile
impl UnwindSafe for SchemaFile
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