#[derive(Stream)]
{
// Attributes available to this derive:
#[map]
#[from_instruction]
#[event]
#[snapshot]
#[aggregate]
#[computed]
#[derive_from]
}
Expand description
Derive macro for Stream.
This is a marker derive that enables the following attributes on struct fields:
#[map(...)]- Map from account fields#[from_instruction(...)]- Map from instruction fields#[event(...)]- Capture instruction events#[snapshot(...)]- Capture entire source#[aggregate(...)]- Aggregate field values#[computed(...)]- Computed fields from other fields#[derive_from(...)]- Derive values from instructions