pub struct AnyRef<'a> {
pub type_url: &'a str,
pub value: &'a [u8],
}Expand description
A reference to a protobuf Any type. Can be created from references to
prost_types::Any,
pbjson_types::Any, or our own Any type.
Fields§
§type_url: &'a str§value: &'a [u8]Implementations§
Trait Implementations§
impl<'a> Copy for AnyRef<'a>
impl<'a> StructuralPartialEq for AnyRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for AnyRef<'a>
impl<'a> RefUnwindSafe for AnyRef<'a>
impl<'a> Send for AnyRef<'a>
impl<'a> Sync for AnyRef<'a>
impl<'a> Unpin for AnyRef<'a>
impl<'a> UnwindSafe for AnyRef<'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