#[repr(C)]
pub struct MangoAccountFixed {
Show 15 fields pub group: Pubkey, pub owner: Pubkey, pub name: [u8; 32], pub delegate: Pubkey, pub account_num: u32, pub bump: u8, pub padding: [u8; 1], pub net_deposits: i64, pub perp_spot_transfers: i64, pub health_region_begin_init_health: i64, pub frozen_until: u64, pub buyback_fees_accrued_current: u64, pub buyback_fees_accrued_previous: u64, pub buyback_fees_expiry_timestamp: u64, pub reserved: [u8; 208], /* private fields */
}

Fields

group: Pubkeyowner: Pubkeyname: [u8; 32]delegate: Pubkeyaccount_num: u32bump: u8padding: [u8; 1]net_deposits: i64perp_spot_transfers: i64health_region_begin_init_health: i64frozen_until: u64buyback_fees_accrued_current: u64buyback_fees_accrued_previous: u64buyback_fees_expiry_timestamp: u64reserved: [u8; 208]

Implementations

Updates the buyback_fees_* fields for staggered expiry of available amounts.

The total buyback fees amount that the account can make use of.

Add new fees that are usable with the buyback fees feature.

Reduce the available buyback fees amount because it was used up.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Casts the value.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern. Read more
If this function returns true, then it must be valid to reinterpret bits as &Self. Read more
Casts the value.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Performs the conversion.
Performs the conversion.
Casts the value.
Casts the value.
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
Casts the value.
Casts the value.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Casts the value.
Casts the value.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Casts the value.
Casts the value.