Struct darling_core::options::Core [] [src]

pub struct Core {
    pub ident: Ident,
    pub generics: Generics,
    pub default: Option<DefaultExpression>,
    pub rename_rule: RenameRule,
    pub map: Option<Path>,
    pub data: Data<InputVariant, InputField>,
    pub bound: Option<Vec<WherePredicate>>,
}

A struct or enum which should have FromMeta or FromDeriveInput implementations generated.

Fields

The type identifier.

The type's generics. If the type does not use any generics, this will be an empty instance.

Controls whether missing properties should cause errors or should be filled by the result of a function call. This can be overridden at the field level.

The rule that should be used to rename all fields/variants in the container.

An infallible function with the signature FnOnce(T) -> T which will be called after the target instance is successfully constructed.

The body of the deriving type.

The custom bound to apply to the generated impl

Methods

impl Core
[src]

[src]

Partially initializes Core by reading the identity, generics, and body shape.

Trait Implementations

impl Debug for Core
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Core
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Core
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Core
[src]

impl ParseAttribute for Core
[src]

[src]

Read a meta-item, and apply its values to the current instance.

[src]

impl ParseData for Core
[src]

[src]

Apply the next found variant to the object, returning an error if parsing goes wrong. Read more

[src]

Apply the next found struct field to the object, returning an error if parsing goes wrong. Read more

[src]

impl<'a> From<&'a Core> for TraitImpl<'a>
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl !Send for Core

impl !Sync for Core