Struct continuation_router::Continuation
source · [−]pub struct Continuation {
pub owner: Pubkey,
pub payer: Pubkey,
pub initial_amount_in: TokenAmount,
pub input: Pubkey,
pub amount_in: TokenAmount,
pub steps_left: u16,
pub output: Pubkey,
pub output_initial_balance: u64,
pub minimum_amount_out: TokenAmount,
/* private fields */
}Expand description
Continuation state of the owner.
Fields
owner: PubkeyThe owner of the continuation.
payer: PubkeyThe payer of the continuation.
initial_amount_in: TokenAmountThe initial amount of tokens in.
input: PubkeyThe next input account.
amount_in: TokenAmountThe next amount of tokens to input.
steps_left: u16The total number of steps that still need to be executed.
output: PubkeyThe final output account.
output_initial_balance: u64The initial balance of the output account.
minimum_amount_out: TokenAmountThe minimum amount of tokens to output at the end of the transaction.
Trait Implementations
Deserializes previously initialized account data. Should fail for all
uninitialized accounts, where the bytes are zeroed. Implementations
should be unique to a particular account type so that one can never
successfully deserialize the data of one account type into another.
For example, if the SPL token program were to implement this trait,
it should be impossible to deserialize a Mint account into a token
Account. Read more
impl BorshDeserialize for Continuation where
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
TokenAmount: BorshDeserialize,
Pubkey: BorshDeserialize,
TokenAmount: BorshDeserialize,
u16: BorshDeserialize,
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
TokenAmount: BorshDeserialize,
u8: BorshDeserialize,
impl BorshDeserialize for Continuation where
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
TokenAmount: BorshDeserialize,
Pubkey: BorshDeserialize,
TokenAmount: BorshDeserialize,
u16: BorshDeserialize,
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
TokenAmount: BorshDeserialize,
u8: BorshDeserialize,
impl BorshSerialize for Continuation where
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
TokenAmount: BorshSerialize,
Pubkey: BorshSerialize,
TokenAmount: BorshSerialize,
u16: BorshSerialize,
Pubkey: BorshSerialize,
u64: BorshSerialize,
TokenAmount: BorshSerialize,
u8: BorshSerialize,
impl BorshSerialize for Continuation where
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
TokenAmount: BorshSerialize,
Pubkey: BorshSerialize,
TokenAmount: BorshSerialize,
u16: BorshSerialize,
Pubkey: BorshSerialize,
u64: BorshSerialize,
TokenAmount: BorshSerialize,
u8: BorshSerialize,
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for Continuation
impl Send for Continuation
impl Sync for Continuation
impl Unpin for Continuation
impl UnwindSafe for Continuation
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more