Struct reproto_parser::ast::Field
[−]
[src]
pub struct Field<'input> { pub modifier: RpModifier, pub name: &'input str, pub comment: Vec<&'input str>, pub ty: Type, pub field_as: Option<String>, }
Fields
modifier: RpModifier
name: &'input str
comment: Vec<&'input str>
ty: Type
field_as: Option<String>
Methods
impl<'input> Field<'input>
[src]
fn is_optional(&self) -> bool
[src]
Trait Implementations
impl<'input> Debug for Field<'input>
[src]
impl<'input> PartialEq for Field<'input>
[src]
fn eq(&self, __arg_0: &Field<'input>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Field<'input>) -> bool
[src]
This method tests for !=
.