Skip to main content

Module traits

Module traits 

Source
Expand description

Generic ledger-object field accessor traits.

The base traits LedgerObjectCommonFields / CurrentLedgerObjectCommonFields are hand-written here (no field is common to every ledger entry). Every per-ledger-entry field trait (AccountRootFields, EscrowFields, OracleFields, etc.) is generated in crate::objects::generated and re-exported from crate::objects; a couple are also re-exported here for a stable objects::traits::* import path.

Traitsยง

AccountRootFields
Trait providing access to fields specific to AccountRoot objects in any ledger.
CurrentLedgerObjectCommonFields
Trait providing access to common fields in the current ledger object.
EscrowFields
Trait providing access to fields specific to Escrow objects in any ledger.
LedgerObjectCommonFields
Trait providing access to common fields present in all ledger objects.