Struct reproto_core::RpField
[−]
[src]
pub struct RpField { pub modifier: RpModifier, pub name: String, pub comment: Vec<String>, pub ty: RpType, pub field_as: Option<String>, }
Fields
modifier: RpModifier
name: String
comment: Vec<String>
ty: RpType
field_as: Option<String>
Alias of field in JSON.
Methods
impl RpField
[src]
fn is_optional(&self) -> bool
[src]
fn is_required(&self) -> bool
[src]
fn ident(&self) -> &str
[src]
fn name(&self) -> &str
[src]
fn display(&self) -> String
[src]
Trait Implementations
impl Debug for RpField
[src]
impl Clone for RpField
[src]
fn clone(&self) -> RpField
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for RpField
[src]
fn eq(&self, __arg_0: &RpField) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RpField) -> bool
[src]
This method tests for !=
.