Struct pbcodec::fields::Oneof1
[−]
[src]
pub struct Oneof1<A> { pub field: Option<Variant1<A>>, }
Fields
field: Option<Variant1<A>>
Trait Implementations
impl<A: Debug> Debug for Oneof1<A>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<A> Field for Oneof1<A> where
A: SingularField,
[src]
A: SingularField,
impl<A> From<Variant1<A>> for Oneof1<A>
[src]
impl<A> From<Option<Variant1<A>>> for Oneof1<A>
[src]
impl<A> Default for Oneof1<A>
[src]
impl<R, A> DecodeField<R> for Oneof1<A> where
R: Read,
A: DecodeField<R> + SingularField,
[src]
R: Read,
A: DecodeField<R> + SingularField,
type Future = DecodeOneof1<R, A>
fn is_target(tag: u32) -> bool
[src]
fn decode_field(
self,
reader: R,
tag: u32,
wire_type: WireType
) -> Result<Self::Future, Error<R>>
[src]
self,
reader: R,
tag: u32,
wire_type: WireType
) -> Result<Self::Future, Error<R>>
impl<W, A> Encode<W> for Oneof1<A> where
W: Write,
A: Encode<W> + SingularField,
[src]
W: Write,
A: Encode<W> + SingularField,