Struct reproto_core::RpField
[−]
[src]
pub struct RpField { pub modifier: RpModifier, pub comment: Vec<String>, pub ty: RpType, pub field_as: Option<Loc<String>>, // some fields omitted }
Fields
modifier: RpModifier
comment: Vec<String>
ty: RpType
field_as: Option<Loc<String>>
Methods
impl RpField
[src]
fn new(
modifier: RpModifier,
name: String,
comment: Vec<String>,
ty: RpType,
field_as: Option<Loc<String>>
) -> RpField
modifier: RpModifier,
name: String,
comment: Vec<String>,
ty: RpType,
field_as: Option<Loc<String>>
) -> RpField
fn is_optional(&self) -> bool
fn ident(&self) -> &str
fn name(&self) -> &str
fn display(&self) -> String
Trait Implementations
impl Debug for RpField
[src]
impl Clone for RpField
[src]
fn clone(&self) -> RpField
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more