Enum darling_core::options::ForwardAttrs [] [src]

pub enum ForwardAttrs {
    All,
    Only(IdentList),
}

A rule about which attributes to forward to the generated struct.

Variants

Methods

impl ForwardAttrs
[src]

[src]

Returns true if this will not forward any attributes.

Trait Implementations

impl Debug for ForwardAttrs
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for ForwardAttrs
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for ForwardAttrs
[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 ForwardAttrs
[src]

impl FromMeta for ForwardAttrs
[src]

[src]

Create an instance from the presence of the word in the attribute with no additional options specified. Read more

[src]

Create an instance from a list of nested meta items.

[src]

[src]

Create an instance from a syn::Meta by dispatching to the format-appropriate trait function. This generally should not be overridden by implementers. Read more

[src]

Create an instance from a literal value of either foo = "bar" or foo("bar"). This dispatches to the appropriate method based on the type of literal encountered, and generally should not be overridden by implementers. Read more

[src]

Create an instance from a char literal in a value position.

[src]

Create an instance from a string literal in a value position.

[src]

Create an instance from a bool literal in a value position.

Auto Trait Implementations

impl !Send for ForwardAttrs

impl !Sync for ForwardAttrs