pub struct FlashStateInfo {
pub payer: Pubkey,
pub token_mint: Pubkey,
pub amount: u64,
pub fee: u64,
pub source_tier: u8,
pub tier: FlashTier,
pub slot_created: u64,
pub bump: u8,
}Expand description
On-chain FlashState v2 (102 bytes)
Fields§
§payer: PubkeyBorrower pubkey
token_mint: PubkeyToken mint borrowed
amount: u64Amount borrowed in native units
fee: u64Fee in native units
source_tier: u8Source tier (0=SDK, 1=UI, 2=Protocol)
tier: FlashTierHuman-readable tier
slot_created: u64Slot when created
bump: u8PDA bump
Trait Implementations§
Source§impl Clone for FlashStateInfo
impl Clone for FlashStateInfo
Source§fn clone(&self) -> FlashStateInfo
fn clone(&self) -> FlashStateInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FlashStateInfo
impl RefUnwindSafe for FlashStateInfo
impl Send for FlashStateInfo
impl Sync for FlashStateInfo
impl Unpin for FlashStateInfo
impl UnsafeUnpin for FlashStateInfo
impl UnwindSafe for FlashStateInfo
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more