Struct quarry_redeemer::Redeemer
source · [−]pub struct Redeemer {
pub iou_mint: Pubkey,
pub redemption_mint: Pubkey,
pub bump: u8,
pub total_tokens_redeemed: u64,
}
Expand description
Redeemer state
Fields
iou_mint: Pubkey
Mint of the IOU token.
redemption_mint: Pubkey
Mint of the token to redeem.
bump: u8
Bump seed.
total_tokens_redeemed: u64
Lifetime number of IOU tokens redeemed for redemption tokens.
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
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Redeemer
impl UnwindSafe for Redeemer
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more