pub struct ProtoMessage {
pub name: String,
pub full_name: String,
pub fields: Vec<ProtoField>,
pub messages: Vec<ProtoMessage>,
pub enums: Vec<ProtoEnum>,
pub reserved_numbers: Vec<String>,
pub reserved_names: Vec<String>,
pub options: BTreeMap<String, String>,
pub is_extension: bool,
pub line: u32,
}Expand description
Fully owned protobuf message contract.
Fields§
§name: StringUnqualified message name.
full_name: StringPackage-qualified and nesting-qualified message name.
fields: Vec<ProtoField>Direct fields sorted by field number and name.
messages: Vec<ProtoMessage>Directly nested messages sorted by fully qualified name.
enums: Vec<ProtoEnum>Directly nested enums sorted by fully qualified name.
reserved_numbers: Vec<String>Reserved number declarations in canonical protobuf notation.
reserved_names: Vec<String>Reserved field names.
options: BTreeMap<String, String>Generator-relevant message options.
is_extension: boolWhether this declaration extends an existing message.
line: u32One-based declaration line.
Trait Implementations§
Source§impl Clone for ProtoMessage
impl Clone for ProtoMessage
Source§fn clone(&self) -> ProtoMessage
fn clone(&self) -> ProtoMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProtoMessage
impl Debug for ProtoMessage
Source§impl<'de> Deserialize<'de> for ProtoMessage
impl<'de> Deserialize<'de> for ProtoMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProtoMessage
Source§impl PartialEq for ProtoMessage
impl PartialEq for ProtoMessage
Source§impl Serialize for ProtoMessage
impl Serialize for ProtoMessage
impl StructuralPartialEq for ProtoMessage
Auto Trait Implementations§
impl Freeze for ProtoMessage
impl RefUnwindSafe for ProtoMessage
impl Send for ProtoMessage
impl Sync for ProtoMessage
impl Unpin for ProtoMessage
impl UnsafeUnpin for ProtoMessage
impl UnwindSafe for ProtoMessage
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.