Struct darling_core::options::InputField
[−]
[src]
pub struct InputField { pub ident: Ident, pub attr_name: Option<String>, pub ty: Type, pub default: Option<DefaultExpression>, pub with: Option<Path>, pub skip: bool, pub map: Option<Path>, pub multiple: bool, }
Fields
ident: Ident
attr_name: Option<String>
ty: Type
default: Option<DefaultExpression>
with: Option<Path>
skip: bool
If true
, generated code will not look for this field in the input meta item,
instead always falling back to either InputField::default
or Default::default
.
map: Option<Path>
multiple: bool
Methods
impl InputField
[src]
pub fn as_codegen_field<'a>(&'a self) -> Field<'a>
[src]
Generate a view into this field that can be used for code generation.
pub fn from_field(f: &Field, parent: Option<&Core>) -> Result<Self>
[src]
Trait Implementations
impl Debug for InputField
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for InputField
[src]
fn clone(&self) -> InputField
[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 InputField
[src]
fn eq(&self, __arg_0: &InputField) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &InputField) -> bool
[src]
This method tests for !=
.