#[repr(C)]pub struct Escrow {
pub authority: Pubkey,
pub bump: u64,
pub last_hash: [u8; 32],
pub last_balance: u64,
}
Expand description
Escrow account
Fields§
The signer authorized to use this relay account.
bump: u64
The bump used for signing CPIs.
last_hash: [u8; 32]
The last hash this relayer has collected commission on.
last_balance: u64
The last observed balance of the escrowed proof acount.
Implementations§
Trait Implementations§
Source§impl AccountDeserialize for Escrow
impl AccountDeserialize for Escrow
fn try_from_bytes(data: &[u8]) -> Result<&Self, ProgramError>
fn try_from_bytes_mut(data: &mut [u8]) -> Result<&mut Self, ProgramError>
Source§impl Discriminator for Escrow
impl Discriminator for Escrow
fn discriminator() -> u8
impl Copy for Escrow
impl Pod for Escrow
impl StructuralPartialEq for Escrow
Auto Trait Implementations§
impl Freeze for Escrow
impl RefUnwindSafe for Escrow
impl Send for Escrow
impl Sync for Escrow
impl Unpin for Escrow
impl UnwindSafe for Escrow
Blanket Implementations§
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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