pub struct PoolBalance {
pub scaled_balance: u128,
pub market_index: u16,
pub padding: [u8; 6],
}Fields§
§scaled_balance: u128§market_index: u16§padding: [u8; 6]Trait Implementations§
Source§impl BorshDeserialize for PoolBalance
impl BorshDeserialize for PoolBalance
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for PoolBalance
impl BorshSerialize for PoolBalance
Source§impl Clone for PoolBalance
impl Clone for PoolBalance
Source§fn clone(&self) -> PoolBalance
fn clone(&self) -> PoolBalance
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 moreSource§impl Debug for PoolBalance
impl Debug for PoolBalance
Source§impl Default for PoolBalance
impl Default for PoolBalance
Source§fn default() -> PoolBalance
fn default() -> PoolBalance
Returns the “default value” for a type. Read more
impl Copy for PoolBalance
Auto Trait Implementations§
impl Freeze for PoolBalance
impl RefUnwindSafe for PoolBalance
impl Send for PoolBalance
impl Sync for PoolBalance
impl Unpin for PoolBalance
impl UnwindSafe for PoolBalance
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