Attribute Macro aliri_braid::braid [−][src]
#[braid]
Expand description
Constructs a braid
Available options:
ref = "RefName"
- Sets the name of the borrowed type
ref_doc = "Alternate doc comment"
- Overrides the default doc comment for the borrowed type
- either
validator [ = "Type" ]
ornormalizer [ = "Type" ]
- Indicates the type is validated or normalized. If not specified, it is assumed that the braid implements the relevant trait itself.
omit_clone
- Prevents the owned type from automatically deriving a
Clone
implementation
- Prevents the owned type from automatically deriving a
debug_impl = "auto|owned|none"
(defaultauto
)- Changes how automatic implementations of the
Debug
trait are provided. Ifowned
, then the owned type will generate aDebug
implementation that will just delegate to the borrowed implementation. Ifnone
, then no implementations ofDebug
will be provided.
- Changes how automatic implementations of the
display_impl = "auto|owned|none"
(defaultauto
)- Changes how automatic implementations of the
Display
trait are provided. Ifowned
, then the owned type will generate aDisplay
implementation that will just delegate to the borrowed implementation. Ifnone
, then no implementations ofDisplay
will be provided.
- Changes how automatic implementations of the
serde
- Adds serialize and deserialize implementations