#[repr(C)]pub struct UAny { /* private fields */ }Expand description
Minimal google.protobuf.Any carrier: a type URL plus serialized bytes.
Implementations§
Source§impl UAny
impl UAny
Sourcepub fn new<V: Into<Bytes>>(type_url: String, value: V) -> Self
pub fn new<V: Into<Bytes>>(type_url: String, value: V) -> Self
Creates a carrier from a type URL and serialized value bytes.
Sourcepub fn get_type_url(&self) -> &str
👎Deprecated since 0.11.0: renamed to type_url
pub fn get_type_url(&self) -> &str
type_urlDeprecated alias for Self::type_url.
Sourcepub fn get_value(&self) -> &[u8] ⓘ
👎Deprecated since 0.11.0: renamed to value
pub fn get_value(&self) -> &[u8] ⓘ
valueDeprecated alias for Self::value.
Trait Implementations§
impl StructuralPartialEq for UAny
Auto Trait Implementations§
impl !Freeze for UAny
impl RefUnwindSafe for UAny
impl Send for UAny
impl Sync for UAny
impl Unpin for UAny
impl UnwindSafe for UAny
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<TCore> UWithNativePrefixWire for TCore
impl<TCore> UWithNativePrefixWire for TCore
Source§fn into_native_prefix_wire_transport<W>(
self,
wire: W,
) -> UWireTransport<TCore, W, NativePrefixFrameMetadataCodec>where
W: UWire,
fn into_native_prefix_wire_transport<W>(
self,
wire: W,
) -> UWireTransport<TCore, W, NativePrefixFrameMetadataCodec>where
W: UWire,
Wraps this core with an external or custom selected wire using canonical metadata.
Source§fn into_protobuf_transport(
self,
) -> UWireTransport<TCore, ProtobufWire, NativePrefixFrameMetadataCodec>
fn into_protobuf_transport( self, ) -> UWireTransport<TCore, ProtobufWire, NativePrefixFrameMetadataCodec>
Wraps this core with the Protocol Buffers selected-wire profile.
Source§fn into_stable_container_transport(
self,
) -> UWireTransport<TCore, StableContainerWireFormat, NativePrefixFrameMetadataCodec>
fn into_stable_container_transport( self, ) -> UWireTransport<TCore, StableContainerWireFormat, NativePrefixFrameMetadataCodec>
Wraps this core with the stable-container selected-wire profile.