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
sourceimpl AccountDeserialize for Continuation
impl AccountDeserialize for Continuation
sourcefn try_deserialize(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
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
sourceimpl AccountSerialize for Continuation
impl AccountSerialize for Continuation
sourceimpl 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,
sourceimpl 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,
sourceimpl Clone for Continuation
impl Clone for Continuation
sourcefn clone(&self) -> Continuation
fn clone(&self) -> Continuation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Default for Continuation
impl Default for Continuation
sourcefn default() -> Continuation
fn default() -> Continuation
Returns the “default value” for a type. Read more
sourceimpl Discriminator for Continuation
impl Discriminator for Continuation
fn discriminator() -> [u8; 8]
sourceimpl Owner for Continuation
impl Owner for Continuation
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
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more