pub struct Deal {Show 19 fields
pub name: String,
pub borrower: Pubkey,
pub amount_withdrawn: u64,
pub go_live_at: i64,
pub created_at: i64,
pub max_funding_duration: u8,
pub deal_number: u16,
pub bump: u8,
pub opened_at: i64,
pub arrangement_fees: u64,
pub arrangement_fees_repaid: u64,
pub time_latest_arrangement_fees_charged: i64,
pub migrated: bool,
pub original_go_live_at: i64,
pub prev_update_ts: Option<i64>,
pub arrangement_fee: Fraction,
pub collection_token_account: Option<Pubkey>,
pub off_ramp_token_account: Option<Pubkey>,
pub arrangement_fee_collection_authority: Option<Pubkey>,
}Expand description
Account: Deal
Fields§
§name: String§borrower: Pubkey§amount_withdrawn: u64§go_live_at: i64§created_at: i64§max_funding_duration: u8§deal_number: u16§bump: u8§opened_at: i64§arrangement_fees: u64§arrangement_fees_repaid: u64§time_latest_arrangement_fees_charged: i64§migrated: bool§original_go_live_at: i64§prev_update_ts: Option<i64>§arrangement_fee: Fraction§collection_token_account: Option<Pubkey>§off_ramp_token_account: Option<Pubkey>Implementations§
Trait Implementations§
Source§impl AccountDeserialize for Deal
impl AccountDeserialize for Deal
Source§fn 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.Source§fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
Deserializes account data without checking the account discriminator.
This should only be used on account initialization, when the bytes of
the account are zeroed.
Source§impl AccountSerialize for Deal
impl AccountSerialize for Deal
Source§impl BorshDeserialize for Deal
impl BorshDeserialize for Deal
Source§impl BorshSerialize for Dealwhere
String: BorshSerialize,
Pubkey: BorshSerialize,
u64: BorshSerialize,
i64: BorshSerialize,
u8: BorshSerialize,
u16: BorshSerialize,
bool: BorshSerialize,
Option<i64>: BorshSerialize,
Fraction: BorshSerialize,
Option<Pubkey>: BorshSerialize,
impl BorshSerialize for Dealwhere
String: BorshSerialize,
Pubkey: BorshSerialize,
u64: BorshSerialize,
i64: BorshSerialize,
u8: BorshSerialize,
u16: BorshSerialize,
bool: BorshSerialize,
Option<i64>: BorshSerialize,
Fraction: BorshSerialize,
Option<Pubkey>: BorshSerialize,
Source§impl Discriminator for Deal
impl Discriminator for Deal
const DISCRIMINATOR: [u8; 8]
fn discriminator() -> [u8; 8]
Auto Trait Implementations§
impl Freeze for Deal
impl RefUnwindSafe for Deal
impl Send for Deal
impl Sync for Deal
impl Unpin for Deal
impl UnwindSafe for Deal
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> 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