pub struct Schema416e06aac72cce79110c(/* private fields */);Expand description
Lossless oneOf alternatives. Shape matching does not replace host constraints.
Implementations§
Source§impl Schema416e06aac72cce79110c
impl Schema416e06aac72cce79110c
pub const MODE: &'static str = "oneOf"
pub fn as_json(&self) -> &Value
pub fn into_json(self) -> Value
pub fn variant_1(value: Schema845975bf492c1e643c85) -> Result<Self, Error>
pub fn is_variant_1(&self) -> bool
pub fn as_variant_1(&self) -> Result<Schema845975bf492c1e643c85, Error>
pub fn variant_2(value: Schema0fc0f654297d0d35425f) -> Result<Self, Error>
pub fn is_variant_2(&self) -> bool
pub fn as_variant_2(&self) -> Result<Schema0fc0f654297d0d35425f, Error>
Trait Implementations§
Source§impl Clone for Schema416e06aac72cce79110c
impl Clone for Schema416e06aac72cce79110c
Source§impl Debug for Schema416e06aac72cce79110c
impl Debug for Schema416e06aac72cce79110c
Source§impl<'de> Deserialize<'de> for Schema416e06aac72cce79110c
impl<'de> Deserialize<'de> for Schema416e06aac72cce79110c
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Schema416e06aac72cce79110c
Auto Trait Implementations§
impl Freeze for Schema416e06aac72cce79110c
impl RefUnwindSafe for Schema416e06aac72cce79110c
impl Send for Schema416e06aac72cce79110c
impl Sync for Schema416e06aac72cce79110c
impl Unpin for Schema416e06aac72cce79110c
impl UnsafeUnpin for Schema416e06aac72cce79110c
impl UnwindSafe for Schema416e06aac72cce79110c
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