Skip to main content

FromNarg

Derive Macro FromNarg 

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

Derive macro for the FromNarg trait.

Generates an implementation that parses struct fields sequentially from the NARG string. Fields can be skipped using #[spongefish(skip)]. Parsing returns VerificationError on failure; use NargReader::read to reject poisoned readers and automatically record nested field errors.