pub struct GraphQLIntrospectionConfigWalker<'r, R: BorrowedReader + 'r> { /* private fields */ }Expand description
Walker for a revisioned enum. Generated by #[revisioned(...)].
Implementations§
Source§impl<'r, R: BorrowedReader + 'r> GraphQLIntrospectionConfigWalker<'r, R>
impl<'r, R: BorrowedReader + 'r> GraphQLIntrospectionConfigWalker<'r, R>
Sourcepub fn discriminant(&self) -> u32
pub fn discriminant(&self) -> u32
Variant discriminant on the wire (for Wire) or on the
re-encoded current-rev bytes (for the borrowed / owned arms).
Use
walk_revisioned_variant_name
to map this to a variant identifier.
Sourcepub fn is_auto(&self) -> bool
pub fn is_auto(&self) -> bool
Returns true if the wire’s discriminant identifies this variant
at the wire revision (or, for borrowed / owned walkers, on the
current-rev bytes).
Sourcepub fn into_auto(self) -> Result<(), Error>
pub fn into_auto(self) -> Result<(), Error>
Verify the wire encoding identifies the unit variant
#variant_ident and return ().
Sourcepub fn decode_auto(self) -> Result<(), Error>
pub fn decode_auto(self) -> Result<(), Error>
Decode the unit variant — same as into_<variant> for
unit variants, kept for API symmetry.
Sourcepub fn is_none(&self) -> bool
pub fn is_none(&self) -> bool
Returns true if the wire’s discriminant identifies this variant
at the wire revision (or, for borrowed / owned walkers, on the
current-rev bytes).
Sourcepub fn into_none(self) -> Result<(), Error>
pub fn into_none(self) -> Result<(), Error>
Verify the wire encoding identifies the unit variant
#variant_ident and return ().
Sourcepub fn decode_none(self) -> Result<(), Error>
pub fn decode_none(self) -> Result<(), Error>
Decode the unit variant — same as into_<variant> for
unit variants, kept for API symmetry.