pub struct ParsedSchema {
pub name: String,
pub entities: Vec<EntityDef>,
pub types: Vec<TypeDef>,
}Expand description
A structurally parsed schema.
Fields§
§name: StringDeclared schema name, or an empty string when absent.
entities: Vec<EntityDef>Entity declarations in source order.
types: Vec<TypeDef>Type declarations in source order.
Trait Implementations§
Source§impl Clone for ParsedSchema
impl Clone for ParsedSchema
Source§fn clone(&self) -> ParsedSchema
fn clone(&self) -> ParsedSchema
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ParsedSchema
impl Debug for ParsedSchema
Source§impl Default for ParsedSchema
impl Default for ParsedSchema
Source§fn default() -> ParsedSchema
fn default() -> ParsedSchema
Returns the “default value” for a type. Read more
impl Eq for ParsedSchema
Source§impl PartialEq for ParsedSchema
impl PartialEq for ParsedSchema
impl StructuralPartialEq for ParsedSchema
Auto Trait Implementations§
impl Freeze for ParsedSchema
impl RefUnwindSafe for ParsedSchema
impl Send for ParsedSchema
impl Sync for ParsedSchema
impl Unpin for ParsedSchema
impl UnsafeUnpin for ParsedSchema
impl UnwindSafe for ParsedSchema
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