Skip to main content

ExternObject

Derive Macro ExternObject 

Source
#[derive(ExternObject)]
{
    // Attributes available to this derive:
    #[extern_object]
}
Expand description

Derive macro for ExternObject — generates the full trait implementation from a struct’s named fields.

See urd_derive::ExternObject for supported attributes.

Re-exported with the same name as the trait — Rust keeps derive macros and types in separate namespaces, so #[derive(ExternObject)] resolves the macro while impl ExternObject resolves the trait (same pattern as serde::Serialize). Derive the ExternObject trait for a struct.

See the module-level documentation for usage and supported attributes.