pub struct Field {
pub name: Ident,
pub field_name: Ident,
pub modifier: Option<Modifier>,
pub typ: FieldType,
pub tag: TagValue,
pub options: Vec<ProtobufOption>,
pub enum_field: bool,
}
Expand description
A Protobuf Field
Fields§
§name: Ident
Field name
field_name: Ident
§modifier: Option<Modifier>
Field Rule
typ: FieldType
Field type
tag: TagValue
Tag number
options: Vec<ProtobufOption>
Non-builtin options
enum_field: bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl !Send for Field
impl !Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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