pub struct BaseSchema {
pub enum: Option<Vec<ConstValue>>,
pub const: Option<ConstValue>,
pub description: Option<String>,
}Expand description
The BaseSchema contains common fields for all schemas.
Fields§
§enum: Option<Vec<ConstValue>>§const: Option<ConstValue>§description: Option<String>Implementations§
Source§impl BaseSchema
impl BaseSchema
pub fn as_hash_map(&self) -> HashMap<String, String>
pub fn handle_key_value( &mut self, key: &str, value: &MarkedYaml<'_>, ) -> Result<Option<&Self>>
Trait Implementations§
Source§impl Debug for BaseSchema
impl Debug for BaseSchema
Source§impl Default for BaseSchema
impl Default for BaseSchema
Source§fn default() -> BaseSchema
fn default() -> BaseSchema
Returns the “default value” for a type. Read more
Source§impl PartialEq for BaseSchema
impl PartialEq for BaseSchema
Source§impl SchemaMetadata for BaseSchema
impl SchemaMetadata for BaseSchema
fn get_accepted_keys() -> &'static [&'static str]
Source§impl TryFrom<&LinkedHashMap<MarkedYaml<'_>, MarkedYaml<'_>>> for BaseSchema
impl TryFrom<&LinkedHashMap<MarkedYaml<'_>, MarkedYaml<'_>>> for BaseSchema
Source§fn try_from(mapping: &AnnotatedMapping<'_, MarkedYaml<'_>>) -> Result<Self>
fn try_from(mapping: &AnnotatedMapping<'_, MarkedYaml<'_>>) -> Result<Self>
Performs the conversion.
Source§impl TryFrom<&MarkedYaml<'_>> for BaseSchema
impl TryFrom<&MarkedYaml<'_>> for BaseSchema
impl StructuralPartialEq for BaseSchema
Auto Trait Implementations§
impl Freeze for BaseSchema
impl RefUnwindSafe for BaseSchema
impl Send for BaseSchema
impl Sync for BaseSchema
impl Unpin for BaseSchema
impl UnwindSafe for BaseSchema
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