Struct rmp_serde::decode::VariantAccess [] [src]

pub struct VariantAccess<'a, R: 'a> { /* fields omitted */ }

Default variant visitor.

Note

We use default behaviour for new type, which decodes enums with a single value as a tuple.

Methods

impl<'a, R: 'a> VariantAccess<'a, R>
[src]

[src]

Trait Implementations

impl<'de, 'a, R: Read<'de>> EnumAccess<'de> for VariantAccess<'a, R>
[src]

The error type that can be returned if some error occurs during deserialization. Read more

The Visitor that will be used to deserialize the content of the enum variant. Read more

[src]

variant is called to identify which variant to deserialize. Read more

[src]

variant is called to identify which variant to deserialize. Read more

impl<'de, 'a, R: Read<'de>> VariantAccess<'de> for VariantAccess<'a, R>
[src]

The error type that can be returned if some error occurs during deserialization. Must match the error type of our EnumAccess. Read more

[src]

Called when deserializing a variant with no values. Read more

[src]

Called when deserializing a variant with a single value. Read more

[src]

Called when deserializing a tuple-like variant. Read more

[src]

Called when deserializing a struct-like variant. Read more

[src]

Called when deserializing a variant with a single value. Read more