pub struct OneOfSchema { /* private fields */ }Expand description
A schema that matches one of the composite schemas
Implementations§
Source§impl OneOfSchema
impl OneOfSchema
Sourcepub fn new(one_of: impl IntoIterator<Item = SchemaType>) -> Self
pub fn new(one_of: impl IntoIterator<Item = SchemaType>) -> Self
Create a new one of schema
Trait Implementations§
Source§impl Clone for OneOfSchema
impl Clone for OneOfSchema
Source§fn clone(&self) -> OneOfSchema
fn clone(&self) -> OneOfSchema
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OneOfSchema
impl Debug for OneOfSchema
Auto Trait Implementations§
impl Freeze for OneOfSchema
impl RefUnwindSafe for OneOfSchema
impl Send for OneOfSchema
impl Sync for OneOfSchema
impl Unpin for OneOfSchema
impl UnwindSafe for OneOfSchema
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