Struct protobuf::well_known_types::Type [−][src]
pub struct Type { pub name: String, pub fields: RepeatedField<Field>, pub oneofs: RepeatedField<String>, pub options: RepeatedField<Option>, pub source_context: SingularPtrField<SourceContext>, pub syntax: Syntax, // some fields omitted }
Fields
name: String
fields: RepeatedField<Field>
oneofs: RepeatedField<String>
options: RepeatedField<Option>
source_context: SingularPtrField<SourceContext>
syntax: Syntax
Methods
impl Type
[src]
impl Type
pub fn new() -> Type
[src]
pub fn new() -> Type
pub fn clear_name(&mut self)
[src]
pub fn clear_name(&mut self)
pub fn set_name(&mut self, v: String)
[src]
pub fn set_name(&mut self, v: String)
pub fn mut_name(&mut self) -> &mut String
[src]
pub fn mut_name(&mut self) -> &mut String
pub fn take_name(&mut self) -> String
[src]
pub fn take_name(&mut self) -> String
pub fn get_name(&self) -> &str
[src]
pub fn get_name(&self) -> &str
pub fn clear_fields(&mut self)
[src]
pub fn clear_fields(&mut self)
pub fn set_fields(&mut self, v: RepeatedField<Field>)
[src]
pub fn set_fields(&mut self, v: RepeatedField<Field>)
pub fn mut_fields(&mut self) -> &mut RepeatedField<Field>
[src]
pub fn mut_fields(&mut self) -> &mut RepeatedField<Field>
pub fn take_fields(&mut self) -> RepeatedField<Field>
[src]
pub fn take_fields(&mut self) -> RepeatedField<Field>
pub fn get_fields(&self) -> &[Field]
[src]
pub fn get_fields(&self) -> &[Field]
pub fn clear_oneofs(&mut self)
[src]
pub fn clear_oneofs(&mut self)
pub fn set_oneofs(&mut self, v: RepeatedField<String>)
[src]
pub fn set_oneofs(&mut self, v: RepeatedField<String>)
pub fn mut_oneofs(&mut self) -> &mut RepeatedField<String>
[src]
pub fn mut_oneofs(&mut self) -> &mut RepeatedField<String>
pub fn take_oneofs(&mut self) -> RepeatedField<String>
[src]
pub fn take_oneofs(&mut self) -> RepeatedField<String>
pub fn get_oneofs(&self) -> &[String]
[src]
pub fn get_oneofs(&self) -> &[String]
pub fn clear_options(&mut self)
[src]
pub fn clear_options(&mut self)
pub fn set_options(&mut self, v: RepeatedField<Option>)
[src]
pub fn set_options(&mut self, v: RepeatedField<Option>)
pub fn mut_options(&mut self) -> &mut RepeatedField<Option>
[src]
pub fn mut_options(&mut self) -> &mut RepeatedField<Option>
pub fn take_options(&mut self) -> RepeatedField<Option>
[src]
pub fn take_options(&mut self) -> RepeatedField<Option>
pub fn get_options(&self) -> &[Option]
[src]
pub fn get_options(&self) -> &[Option]
pub fn clear_source_context(&mut self)
[src]
pub fn clear_source_context(&mut self)
pub fn has_source_context(&self) -> bool
[src]
pub fn has_source_context(&self) -> bool
pub fn set_source_context(&mut self, v: SourceContext)
[src]
pub fn set_source_context(&mut self, v: SourceContext)
pub fn mut_source_context(&mut self) -> &mut SourceContext
[src]
pub fn mut_source_context(&mut self) -> &mut SourceContext
pub fn take_source_context(&mut self) -> SourceContext
[src]
pub fn take_source_context(&mut self) -> SourceContext
pub fn get_source_context(&self) -> &SourceContext
[src]
pub fn get_source_context(&self) -> &SourceContext
pub fn clear_syntax(&mut self)
[src]
pub fn clear_syntax(&mut self)
pub fn set_syntax(&mut self, v: Syntax)
[src]
pub fn set_syntax(&mut self, v: Syntax)
pub fn get_syntax(&self) -> Syntax
[src]
pub fn get_syntax(&self) -> Syntax
Trait Implementations
impl PartialEq for Type
[src]
impl PartialEq for Type
fn eq(&self, other: &Type) -> bool
[src]
fn eq(&self, other: &Type) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Type) -> bool
[src]
fn ne(&self, other: &Type) -> bool
This method tests for !=
.
impl Clone for Type
[src]
impl Clone for Type
fn clone(&self) -> Type
[src]
fn clone(&self) -> Type
Returns 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 Type
[src]
impl Default for Type
impl Message for Type
[src]
impl Message for Type
fn is_initialized(&self) -> bool
[src]
fn is_initialized(&self) -> bool
True 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) -> u32
Compute 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) -> u32
Get size previously computed by compute_size
.
fn get_unknown_fields(&self) -> &UnknownFields
[src]
fn get_unknown_fields(&self) -> &UnknownFields
Get a reference to unknown fields.
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
[src]
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
Get a mutable reference to unknown fields.
fn as_any(&self) -> &Any
[src]
fn as_any(&self) -> &Any
View self as Any
.
fn as_any_mut(&mut self) -> &mut Any
[src]
fn as_any_mut(&mut self) -> &mut Any
View 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 MessageDescriptor
Message descriptor for this message, used for reflection.
fn new() -> Type
[src]
fn new() -> Type
Create an empty message object.
fn descriptor_static() -> &'static MessageDescriptor
[src]
fn descriptor_static() -> &'static MessageDescriptor
Get message descriptor for message type.
fn default_instance() -> &'static Type
[src]
fn default_instance() -> &'static Type
Return 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) -> TypeId
Get type id for downcasting.
impl Clear for Type
[src]
impl Clear for Type
impl Debug for Type
[src]
impl Debug for Type
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl ProtobufValue for Type
[src]
impl ProtobufValue for Type
fn as_ref(&self) -> ProtobufValueRef
[src]
fn as_ref(&self) -> ProtobufValueRef
fn as_any(&self) -> &Any
[src]
fn as_any(&self) -> &Any
fn is_non_zero(&self) -> bool
[src]
fn is_non_zero(&self) -> bool
fn as_ref_copy(&self) -> ProtobufValueRef<'static>
[src]
fn as_ref_copy(&self) -> ProtobufValueRef<'static>