pub struct Schema {
pub schema: String,
pub theme: String,
pub variant: String,
pub custom: BTreeMap<String, Value>,
pub language: BTreeMap<String, Value>,
}
Fields§
§schema: String
§theme: String
§variant: String
§custom: BTreeMap<String, Value>
§language: BTreeMap<String, Value>
Trait Implementations§
Source§impl TryFrom<ASTProgram> for Schema
impl TryFrom<ASTProgram> for Schema
Source§type Error = RainbowError
type Error = RainbowError
The type returned in the event of a conversion error.
Source§fn try_from(program: ASTProgram) -> Result<Self>
fn try_from(program: ASTProgram) -> Result<Self>
Performs the conversion.
impl Eq for Schema
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