Attribute Macro stix_derive::declaration [−][src]
#[declaration]
Generate a declaration enum which extends the standard STIX declaration.
The enum on which this macro is invoked will have variants added for any standards-defined STIX objects that do not already have a corresponding variant.
Declaring a variant of the same name as a built-in object will use the type from the deriving enum’s variant for that object in the emitted declaration. Use this to extend built-in objects.