Struct macrohelper::bodykind::field::Field
[−]
[src]
pub struct Field { pub id: Option<String>, pub ty: Ty, }
Fields
id: Option<String>
ty: Ty
Methods
impl Field
[src]
fn from_syn_field(x: &SynField) -> Field
Build a field from the syn
crate field type
fn get_name<'a>(&'a self) -> Option<&'a str>
Trait Implementations
impl Clone for Field
[src]
fn clone(&self) -> Field
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