pub enum Schema {
Failsafe,
Json,
Core,
}Expand description
YAML 1.2.2 §10 recommended schema selection.
Variants§
Failsafe
Failsafe schema (§10.1): scalars → str, sequences → seq,
mappings → map.
Json
JSON schema (§10.2): narrow pattern set; unmatched plain scalars
produce UnresolvedScalar.
Core
Core schema (§10.3): superset of JSON; unmatched plain scalars fall
back to str.
Trait Implementations§
impl Copy for Schema
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 UnsafeUnpin 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