pub enum RpSubTypeStrategy {
Tagged {
tag: String,
},
Untagged,
}Variants§
Tagged
An object, with a single tag key indicating which sub-type to use.
Untagged
An sub-type is distinguished by its set of unique fields. This requires a sub-type to actually have a unique set of fields, which is validates during translation.
Trait Implementations§
Source§impl Clone for RpSubTypeStrategy
impl Clone for RpSubTypeStrategy
Source§fn clone(&self) -> RpSubTypeStrategy
fn clone(&self) -> RpSubTypeStrategy
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 RpSubTypeStrategy
impl Debug for RpSubTypeStrategy
Source§impl Default for RpSubTypeStrategy
impl Default for RpSubTypeStrategy
Source§impl PartialEq for RpSubTypeStrategy
impl PartialEq for RpSubTypeStrategy
Source§impl Serialize for RpSubTypeStrategy
impl Serialize for RpSubTypeStrategy
impl Eq for RpSubTypeStrategy
impl StructuralPartialEq for RpSubTypeStrategy
Auto Trait Implementations§
impl Freeze for RpSubTypeStrategy
impl RefUnwindSafe for RpSubTypeStrategy
impl Send for RpSubTypeStrategy
impl Sync for RpSubTypeStrategy
impl Unpin for RpSubTypeStrategy
impl UnwindSafe for RpSubTypeStrategy
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