pub struct ProtoMessage {
pub name: String,
pub fields: Vec<ProtoField>,
pub nested_messages: Vec<ProtoMessage>,
pub nested_enums: Vec<ProtoEnum>,
pub reserved_numbers: Vec<u32>,
pub reserved_names: Vec<String>,
pub comments: Vec<String>,
}Expand description
Represents a Protobuf message definition.
Fields§
§name: StringMessage name (PascalCase)
fields: Vec<ProtoField>Field definitions
nested_messages: Vec<ProtoMessage>Nested message definitions
nested_enums: Vec<ProtoEnum>Nested enum definitions
reserved_numbers: Vec<u32>Reserved field numbers
reserved_names: Vec<String>Reserved field names
comments: Vec<String>Documentation comments
Implementations§
Source§impl ProtoMessage
impl ProtoMessage
Trait Implementations§
Source§impl Clone for ProtoMessage
impl Clone for ProtoMessage
Source§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
Auto Trait Implementations§
impl Forget for ProtoMessage
impl Freeze for ProtoMessagewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ProtoField>: Freeze,
PhantomData<ProtoMessage>: Freeze,
PhantomData<ProtoEnum>: Freeze,
PhantomData<u32>: Freeze,
PhantomData<String>: Freeze,
impl Move for ProtoMessage
impl RefUnwindSafe for ProtoMessage
impl Send for ProtoMessage
impl Sync for ProtoMessage
impl Unpin for ProtoMessage
impl UnsafeUnpin for ProtoMessagewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ProtoField>: UnsafeUnpin,
PhantomData<ProtoMessage>: UnsafeUnpin,
PhantomData<ProtoEnum>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
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