Enum reproto_core::RpSubTypeStrategy [] [src]

pub enum RpSubTypeStrategy {
    Tagged {
        tag: String,
    },
    Untagged,
}

Variants

An object, with a single tag key indicating which sub-type to use.

Fields of Tagged

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]

[src]

Formats the value using the given formatter. Read more

impl Clone for RpSubTypeStrategy
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for RpSubTypeStrategy
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for RpSubTypeStrategy
[src]

impl Default for RpSubTypeStrategy
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations