Enum reproto_core::RpSubTypeStrategy
[−]
[src]
pub enum RpSubTypeStrategy { Tagged { tag: String, }, Untagged, }
Variants
Tagged
An object, with a single tag key indicating which sub-type to use.
Fields of Tagged
tag: String |
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
impl Debug for RpSubTypeStrategy
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for RpSubTypeStrategy
[src]
fn clone(&self) -> RpSubTypeStrategy
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for RpSubTypeStrategy
[src]
fn eq(&self, __arg_0: &RpSubTypeStrategy) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RpSubTypeStrategy) -> bool
[src]
This method tests for !=
.