Struct pbcodec::fields::Oneof1 [] [src]

pub struct Oneof1<A> {
    pub field: Option<Variant1<A>>,
}

Fields

Trait Implementations

impl<A: Debug> Debug for Oneof1<A>
[src]

Formats the value using the given formatter.

impl<A> Field for Oneof1<A> where
    A: SingularField
[src]

impl<A> From<Variant1<A>> for Oneof1<A>
[src]

Performs the conversion.

impl<A> From<Option<Variant1<A>>> for Oneof1<A>
[src]

Performs the conversion.

impl<A> Default for Oneof1<A>
[src]

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

impl<R, A> DecodeField<R> for Oneof1<A> where
    R: Read,
    A: DecodeField<R> + SingularField
[src]

impl<W, A> Encode<W> for Oneof1<A> where
    W: Write,
    A: Encode<W> + SingularField
[src]