Struct protobuf::well_known_types::Any [−][src]
Fields
type_url: String
value: Vec<u8>
Methods
impl Any[src]
impl Anypub fn new() -> Any[src]
pub fn new() -> Anypub fn clear_type_url(&mut self)[src]
pub fn clear_type_url(&mut self)pub fn set_type_url(&mut self, v: String)[src]
pub fn set_type_url(&mut self, v: String)pub fn mut_type_url(&mut self) -> &mut String[src]
pub fn mut_type_url(&mut self) -> &mut Stringpub fn take_type_url(&mut self) -> String[src]
pub fn take_type_url(&mut self) -> Stringpub fn get_type_url(&self) -> &str[src]
pub fn get_type_url(&self) -> &strpub fn clear_value(&mut self)[src]
pub fn clear_value(&mut self)pub fn set_value(&mut self, v: Vec<u8>)[src]
pub fn set_value(&mut self, v: Vec<u8>)pub fn mut_value(&mut self) -> &mut Vec<u8>[src]
pub fn mut_value(&mut self) -> &mut Vec<u8>pub fn take_value(&mut self) -> Vec<u8>[src]
pub fn take_value(&mut self) -> Vec<u8>pub fn get_value(&self) -> &[u8][src]
pub fn get_value(&self) -> &[u8]Trait Implementations
impl PartialEq for Any[src]
impl PartialEq for Anyfn eq(&self, other: &Any) -> bool[src]
fn eq(&self, other: &Any) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Any) -> bool[src]
fn ne(&self, other: &Any) -> boolThis method tests for !=.
impl Clone for Any[src]
impl Clone for Anyfn clone(&self) -> Any[src]
fn clone(&self) -> AnyReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Default for Any[src]
impl Default for Anyimpl Message for Any[src]
impl Message for Anyfn is_initialized(&self) -> bool[src]
fn is_initialized(&self) -> boolTrue iff all required fields are initialized. Always returns true for protobuf 3. Read more
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>[src]
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>Update this message object with fields read from given stream.
fn compute_size(&self) -> u32[src]
fn compute_size(&self) -> u32Compute and cache size of this message and all nested messages
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>[src]
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>Write message to the stream. Read more
fn get_cached_size(&self) -> u32[src]
fn get_cached_size(&self) -> u32Get size previously computed by compute_size.
fn get_unknown_fields(&self) -> &UnknownFields[src]
fn get_unknown_fields(&self) -> &UnknownFieldsGet a reference to unknown fields.
fn mut_unknown_fields(&mut self) -> &mut UnknownFields[src]
fn mut_unknown_fields(&mut self) -> &mut UnknownFieldsGet a mutable reference to unknown fields.
fn as_any(&self) -> &Any[src]
fn as_any(&self) -> &AnyView self as Any.
fn as_any_mut(&mut self) -> &mut Any[src]
fn as_any_mut(&mut self) -> &mut AnyView self as mutable Any.
fn into_any(self: Box<Self>) -> Box<Any>[src]
fn into_any(self: Box<Self>) -> Box<Any>Convert boxed self to boxed Any.
fn descriptor(&self) -> &'static MessageDescriptor[src]
fn descriptor(&self) -> &'static MessageDescriptorMessage descriptor for this message, used for reflection.
fn new() -> Any[src]
fn new() -> AnyCreate an empty message object.
fn descriptor_static() -> &'static MessageDescriptor[src]
fn descriptor_static() -> &'static MessageDescriptorGet message descriptor for message type.
fn default_instance() -> &'static Any[src]
fn default_instance() -> &'static AnyReturn a pointer to default immutable message.
fn write_to(&self, os: &mut CodedOutputStream) -> ProtobufResult<()>[src]
fn write_to(&self, os: &mut CodedOutputStream) -> ProtobufResult<()>Write the message to the stream. Read more
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>[src]
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>Write the message to the stream prepending the message with message length encoded as varint. Read more
fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> ProtobufResult<()>[src]
fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> ProtobufResult<()>Write the message to the vec, prepend the message with message length encoded as varint. Read more
fn merge_from_bytes(&mut self, bytes: &[u8]) -> ProtobufResult<()>[src]
fn merge_from_bytes(&mut self, bytes: &[u8]) -> ProtobufResult<()>Update this message object with fields read from given stream.
fn check_initialized(&self) -> ProtobufResult<()>[src]
fn check_initialized(&self) -> ProtobufResult<()>Check if all required fields of this object are initialized.
fn write_to_writer(&self, w: &mut Write) -> ProtobufResult<()>[src]
fn write_to_writer(&self, w: &mut Write) -> ProtobufResult<()>Write the message to the writer.
fn write_to_vec(&self, v: &mut Vec<u8>) -> ProtobufResult<()>[src]
fn write_to_vec(&self, v: &mut Vec<u8>) -> ProtobufResult<()>Write the message to bytes vec.
fn write_to_bytes(&self) -> ProtobufResult<Vec<u8>>[src]
fn write_to_bytes(&self) -> ProtobufResult<Vec<u8>>Write the message to bytes vec.
fn write_length_delimited_to_writer(&self, w: &mut Write) -> ProtobufResult<()>[src]
fn write_length_delimited_to_writer(&self, w: &mut Write) -> ProtobufResult<()>Write the message to the writer, prepend the message with message length encoded as varint. Read more
fn write_length_delimited_to_bytes(&self) -> ProtobufResult<Vec<u8>>[src]
fn write_length_delimited_to_bytes(&self) -> ProtobufResult<Vec<u8>>Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more
fn type_id(&self) -> TypeId[src]
fn type_id(&self) -> TypeIdGet type id for downcasting.
impl Clear for Any[src]
impl Clear for Anyimpl Debug for Any[src]
impl Debug for Anyfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl ProtobufValue for Any[src]
impl ProtobufValue for Anyfn as_ref(&self) -> ProtobufValueRef[src]
fn as_ref(&self) -> ProtobufValueReffn as_any(&self) -> &Any[src]
fn as_any(&self) -> &Anyfn is_non_zero(&self) -> bool[src]
fn is_non_zero(&self) -> boolfn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]
fn as_ref_copy(&self) -> ProtobufValueRef<'static>