pub trait ConfigOps<C> {
// Required methods
fn insert_global_amount(
&self,
store: &Pubkey,
key: &str,
amount: &Amount,
) -> TransactionBuilder<'_, C>;
fn insert_global_factor(
&self,
store: &Pubkey,
key: &str,
factor: &Factor,
) -> TransactionBuilder<'_, C>;
fn insert_global_address(
&self,
store: &Pubkey,
key: &str,
address: &Pubkey,
) -> TransactionBuilder<'_, C>;
// Provided methods
fn insert_global_amount_by_key(
&self,
store: &Pubkey,
key: AmountKey,
amount: &Amount,
) -> TransactionBuilder<'_, C> { ... }
fn insert_global_factor_by_key(
&self,
store: &Pubkey,
key: FactorKey,
factor: &Factor,
) -> TransactionBuilder<'_, C> { ... }
fn insert_global_address_by_key(
&self,
store: &Pubkey,
key: AddressKey,
address: &Pubkey,
) -> TransactionBuilder<'_, C> { ... }
}
Expand description
Config Operations.
Required Methods§
Sourcefn insert_global_amount(
&self,
store: &Pubkey,
key: &str,
amount: &Amount,
) -> TransactionBuilder<'_, C>
fn insert_global_amount( &self, store: &Pubkey, key: &str, amount: &Amount, ) -> TransactionBuilder<'_, C>
Insert a global amount.
Sourcefn insert_global_factor(
&self,
store: &Pubkey,
key: &str,
factor: &Factor,
) -> TransactionBuilder<'_, C>
fn insert_global_factor( &self, store: &Pubkey, key: &str, factor: &Factor, ) -> TransactionBuilder<'_, C>
Insert a global factor.
Sourcefn insert_global_address(
&self,
store: &Pubkey,
key: &str,
address: &Pubkey,
) -> TransactionBuilder<'_, C>
fn insert_global_address( &self, store: &Pubkey, key: &str, address: &Pubkey, ) -> TransactionBuilder<'_, C>
Insert a global address.
Provided Methods§
Sourcefn insert_global_amount_by_key(
&self,
store: &Pubkey,
key: AmountKey,
amount: &Amount,
) -> TransactionBuilder<'_, C>
fn insert_global_amount_by_key( &self, store: &Pubkey, key: AmountKey, amount: &Amount, ) -> TransactionBuilder<'_, C>
Insert a global amount by key.
Sourcefn insert_global_factor_by_key(
&self,
store: &Pubkey,
key: FactorKey,
factor: &Factor,
) -> TransactionBuilder<'_, C>
fn insert_global_factor_by_key( &self, store: &Pubkey, key: FactorKey, factor: &Factor, ) -> TransactionBuilder<'_, C>
Insert a global factor by key.
Sourcefn insert_global_address_by_key(
&self,
store: &Pubkey,
key: AddressKey,
address: &Pubkey,
) -> TransactionBuilder<'_, C>
fn insert_global_address_by_key( &self, store: &Pubkey, key: AddressKey, address: &Pubkey, ) -> TransactionBuilder<'_, C>
Insert a global address by key.