pub struct NormalizedSchema {
pub entities: Vec<EntitySpec>,
pub json_structures: Vec<JsonStructure>,
pub classifications: Vec<Classification>,
pub relations: Vec<Relation>,
}Fields§
§entities: Vec<EntitySpec>§json_structures: Vec<JsonStructure>§classifications: Vec<Classification>§relations: Vec<Relation>Implementations§
Source§impl NormalizedSchema
impl NormalizedSchema
Sourcepub fn from_json_bytes(bytes: &[u8]) -> Result<Self, SchemaLoadError>
pub fn from_json_bytes(bytes: &[u8]) -> Result<Self, SchemaLoadError>
Parse IE ingest JSON or a root JSON Schema object from UTF-8 bytes.
Tries strict IE IngestSchema first (unknown top-level keys are rejected), then
JSON Schema via JSONSchemaIngestSchema.
pub fn from_json_str(s: &str) -> Result<Self, SchemaLoadError>
Trait Implementations§
Source§impl Clone for NormalizedSchema
impl Clone for NormalizedSchema
Source§fn clone(&self) -> NormalizedSchema
fn clone(&self) -> NormalizedSchema
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 NormalizedSchema
impl Debug for NormalizedSchema
Source§impl Default for NormalizedSchema
impl Default for NormalizedSchema
Source§fn default() -> NormalizedSchema
fn default() -> NormalizedSchema
Returns the “default value” for a type. Read more
Source§impl PartialEq for NormalizedSchema
impl PartialEq for NormalizedSchema
Source§impl Serialize for NormalizedSchema
impl Serialize for NormalizedSchema
Source§impl TryFrom<IngestSchema> for NormalizedSchema
impl TryFrom<IngestSchema> for NormalizedSchema
Source§type Error = SchemaNormalizeError
type Error = SchemaNormalizeError
The type returned in the event of a conversion error.
Source§impl TryFrom<NormalizedSchema> for ExpandedSchema
impl TryFrom<NormalizedSchema> for ExpandedSchema
Source§type Error = SchemaExpandError
type Error = SchemaExpandError
The type returned in the event of a conversion error.
impl StructuralPartialEq for NormalizedSchema
Auto Trait Implementations§
impl Freeze for NormalizedSchema
impl RefUnwindSafe for NormalizedSchema
impl Send for NormalizedSchema
impl Sync for NormalizedSchema
impl Unpin for NormalizedSchema
impl UnsafeUnpin for NormalizedSchema
impl UnwindSafe for NormalizedSchema
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