pub struct AnyView<'a> {
pub type_url: &'a str,
pub value: &'a [u8],
pub __buffa_unknown_fields: UnknownFieldsView<'a>,
}Fields§
§type_url: &'a strField 1: type_url
value: &'a [u8]Field 2: value
__buffa_unknown_fields: UnknownFieldsView<'a>Trait Implementations§
Source§impl DefaultViewInstance for AnyView<'static>
impl DefaultViewInstance for AnyView<'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 AnyView<'a>
impl<'a> HasDefaultViewInstance for AnyView<'a>
Source§impl<'a> MessageView<'a> for AnyView<'a>
impl<'a> MessageView<'a> for AnyView<'a>
Source§fn to_owned_message(&self) -> Any
fn to_owned_message(&self) -> Any
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 AnyView<'a>
impl<'a> RefUnwindSafe for AnyView<'a>
impl<'a> Send for AnyView<'a>
impl<'a> Sync for AnyView<'a>
impl<'a> Unpin for AnyView<'a>
impl<'a> UnsafeUnpin for AnyView<'a>
impl<'a> UnwindSafe for AnyView<'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