pub struct Field {
pub name: String,
pub rule: Rule,
pub typ: FieldType,
pub number: i32,
pub default: Option<String>,
pub packed: Option<bool>,
pub deprecated: bool,
}
Expand description
A Protobuf Field
Fields§
§name: String
Field name
rule: Rule
Field Rule
typ: FieldType
Field type
number: i32
Tag number
default: Option<String>
Default value for the field
packed: Option<bool>
Packed property for repeated fields
deprecated: bool
Is the field deprecated
Trait Implementations§
impl Eq for Field
impl StructuralPartialEq for Field
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