pub struct Schema {
pub doc: Option<String>,
pub kind: TypeKind,
}Expand description
Root schema definition for a Rust type.
Fields§
§doc: Option<String>Documentation from the Rust type’s doc comments.
kind: TypeKindThe kind of type this schema represents.
Implementations§
Trait Implementations§
Source§impl FromRon for Schema
impl FromRon for Schema
Source§impl FromRonFields for Schema
impl FromRonFields for Schema
Source§fn from_fields(access: &mut AstMapAccess<'_>) -> Result<Self>
fn from_fields(access: &mut AstMapAccess<'_>) -> Result<Self>
Consume fields from an existing map access to construct this type. Read more
Source§impl ToRon for Schema
impl ToRon for Schema
Source§fn to_ast(&self) -> Result<Expr<'static>>
fn to_ast(&self) -> Result<Expr<'static>>
Convert this value to a RON AST expression. Read more
Source§fn to_ron(&self) -> Result<String>
fn to_ron(&self) -> Result<String>
Convert this value to a pretty-printed RON string (default format).
Source§fn to_ron_with(&self, config: &FormatConfig) -> Result<String>
fn to_ron_with(&self, config: &FormatConfig) -> Result<String>
Convert this value to a RON string with custom formatting. Read more
impl StructuralPartialEq for Schema
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