Macro derive_deftly_template_SpecificAccount

Source
macro_rules! derive_deftly_template_SpecificAccount {
    ({ $($driver:tt)* } [$($aoptions:tt)*] ($($future:tt)*) $($tpassthrough:tt)*) => { ... };
    ($($wrong:tt)*) => { ... };
}
Expand description

Implements SpecificAccount

Exactly one of the following attributes must be supplied:

  • #[deftly(account_newtype(toplevel)]: Standalone Account, without a parent Account. type ConstructedFrom = Arc<MemoryQuotaTracker>.

  • #[deftly(account_newtype(parent = "PARENT_ACCOUNT"))]: type ConstructedFrom = PARENT_ACCOUNT (and PARENT_ACCOUNT must itself impl SpecificAccount).

Applicable to newtype tuple structs, containing an [Account], only.

This is a derive_deftly template. Do not invoke it directly. To use it, write: #[derive(Deftly)] #[derive_deftly(SpecificAccount)].