Attribute Macro derive_where::derive_where
source · [−]#[derive_where]Expand description
Item-level options:
#[derive_where(Clone, ..; T, ..)]: Specify traits to implement and optionally bounds.#[derive_where(Zeroize(crate = "path"))]: Specify path toZeroizetrait.#[derive_where(ZeroizeOnDrop(crate = "path"))]: Specify path toZeroizeOnDroptrait.
#[derive_where(skip_inner(Clone, ..))]: Skip all fields in the item. Optionally specify traits to constrain skipping fields. Only works for structs, for enums use this on the variant-level.
Variant-level options:
#[derive_where(default)]: Uses this variant as the default for theDefaultimplementation.#[derive_where(skip_inner(Clone, ..))]: Skip all fields in this variant. Optionally specify traits to constrain skipping fields.
Field-level options:
#[derive_where(skip(Clone, ...))]: Skip field. Optionally specify traits to constrain skipping field.#[derive_where(Zeroize(fqs))]: Use fully-qualified-syntax when implementingZeroize.
See the crate level description for more details.