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