pub struct EmptyView<'a> {
pub __buffa_unknown_fields: UnknownFieldsView<'a>,
}Expand description
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs.
Example usage: gRPC uses google.protobuf.Empty as the input and output type for RPCs defined as returning or accepting “nothing”:
rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);Fields§
§__buffa_unknown_fields: UnknownFieldsView<'a>Trait Implementations§
Source§impl DefaultViewInstance for EmptyView<'static>
impl DefaultViewInstance for EmptyView<'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 EmptyView<'a>
impl<'a> HasDefaultViewInstance for EmptyView<'a>
Source§impl<'a> MessageView<'a> for EmptyView<'a>
impl<'a> MessageView<'a> for EmptyView<'a>
Source§fn to_owned_message(&self) -> Empty
fn to_owned_message(&self) -> Empty
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 EmptyView<'a>
impl<'a> RefUnwindSafe for EmptyView<'a>
impl<'a> Send for EmptyView<'a>
impl<'a> Sync for EmptyView<'a>
impl<'a> Unpin for EmptyView<'a>
impl<'a> UnsafeUnpin for EmptyView<'a>
impl<'a> UnwindSafe for EmptyView<'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