pub struct ProtoField {
pub name: String,
pub field_type: String,
pub number: u32,
pub is_repeated: bool,
pub is_optional: bool,
}Expand description
Proto field definition.
Fields§
§name: String§field_type: String§number: u32§is_repeated: bool§is_optional: boolTrait Implementations§
Source§impl Clone for ProtoField
impl Clone for ProtoField
Source§fn clone(&self) -> ProtoField
fn clone(&self) -> ProtoField
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 moreAuto Trait Implementations§
impl Freeze for ProtoField
impl RefUnwindSafe for ProtoField
impl Send for ProtoField
impl Sync for ProtoField
impl Unpin for ProtoField
impl UnsafeUnpin for ProtoField
impl UnwindSafe for ProtoField
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