Module options

Source

Re-exportsยง

pub use self::core::Core;
pub use self::forward_attrs::ForwardAttrsFilter;
pub use self::forwarded_field::ForwardedField;
pub use self::from_attributes::FromAttributesOptions;
pub use self::from_derive::FdiOptions;
pub use self::from_field::FromFieldOptions;
pub use self::from_meta::FromMetaOptions;
pub use self::from_type_param::FromTypeParamOptions;
pub use self::from_variant::FromVariantOptions;
pub use self::input_field::InputField;
pub use self::input_variant::InputVariant;
pub use self::outer_from::OuterFrom;
pub use self::shape::DataShape;
pub use self::shape::DeriveInputShapeSet;

Modulesยง

core ๐Ÿ”’
forward_attrs ๐Ÿ”’
forwarded_field ๐Ÿ”’
from_attributes ๐Ÿ”’
from_derive ๐Ÿ”’
from_field ๐Ÿ”’
from_meta ๐Ÿ”’
from_type_param ๐Ÿ”’
from_variant ๐Ÿ”’
input_field ๐Ÿ”’
input_variant ๐Ÿ”’
outer_from ๐Ÿ”’
shape ๐Ÿ”’
Types for โ€œshapeโ€ validation. This allows types deriving FromDeriveInput etc. to declare that they only work on - for example - structs with named fields, or newtype enum variants.

Enumsยง

DefaultExpression
A default/fallback expression encountered in attributes during parsing.

Traitsยง

ParseAttribute
Middleware for extracting attribute values. Implementers are expected to override parse_nested so they can apply individual items to themselves, while parse_attributes is responsible for looping through distinct outer attributes and collecting errors.
ParseData
Middleware for extracting values from the body of the derive input. Implementers are expected to override parse_field or parse_variant as appropriate for their use-case, while parse_body dispatches to the appropriate methods and handles error collection.

Functionsยง

parse_attr ๐Ÿ”’