pub struct EnumView<'a> {
pub name: &'a str,
pub vals: RepeatedView<'a, &'a str>,
pub comment: &'a str,
pub __buffa_unknown_fields: UnknownFieldsView<'a>,
}Fields§
§name: &'a strField 1: name
vals: RepeatedView<'a, &'a str>Field 2: vals
comment: &'a strField 3: comment
__buffa_unknown_fields: UnknownFieldsView<'a>Trait Implementations§
Source§impl DefaultViewInstance for EnumView<'static>
impl DefaultViewInstance for EnumView<'static>
Source§fn default_view_instance() -> &'static Self
fn default_view_instance() -> &'static Self
Return a reference to the single default view instance.
Source§impl<'a> HasDefaultViewInstance for EnumView<'a>
impl<'a> HasDefaultViewInstance for EnumView<'a>
Source§impl<'a> MessageView<'a> for EnumView<'a>
impl<'a> MessageView<'a> for EnumView<'a>
Source§fn to_owned_message(&self) -> Enum
fn to_owned_message(&self) -> Enum
Convert this view to the owned message type.
Source§fn decode_view(buf: &'a [u8]) -> Result<Self, DecodeError>
fn decode_view(buf: &'a [u8]) -> Result<Self, DecodeError>
Decode a view from a buffer, borrowing string/bytes fields directly. Read more
Source§fn decode_view_with_limit(
buf: &'a [u8],
depth: u32,
) -> Result<Self, DecodeError>
fn decode_view_with_limit( buf: &'a [u8], depth: u32, ) -> Result<Self, DecodeError>
Decode a view with a custom recursion depth limit. Read more
Auto Trait Implementations§
impl<'a> Freeze for EnumView<'a>
impl<'a> RefUnwindSafe for EnumView<'a>
impl<'a> Send for EnumView<'a>
impl<'a> Sync for EnumView<'a>
impl<'a> Unpin for EnumView<'a>
impl<'a> UnsafeUnpin for EnumView<'a>
impl<'a> UnwindSafe for EnumView<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more