pub enum Schema {
Core,
Json,
Failsafe,
}Expand description
YAML schemas define tag resolution rules
Variants§
Implementations§
Source§impl Schema
impl Schema
Sourcepub fn default_tag_for(&self, _value: &str) -> String
pub fn default_tag_for(&self, _value: &str) -> String
Get the default tag for untagged values based on schema
Sourcepub fn allows_implicit_typing(&self) -> bool
pub fn allows_implicit_typing(&self) -> bool
Check if implicit typing is allowed
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.