pub struct OutputAmounts<T> { /* private fields */ }Expand description
Output amounts.
Implementations§
Source§impl<T> OutputAmounts<T>
impl<T> OutputAmounts<T>
Sourcepub fn output_amount(&self) -> &T
pub fn output_amount(&self) -> &T
Get output amount.
Sourcepub fn secondary_output_amount(&self) -> &T
pub fn secondary_output_amount(&self) -> &T
Get secondary output amount.
Trait Implementations§
Source§impl<T> BorshDeserialize for OutputAmounts<T>where
T: BorshDeserialize,
impl<T> BorshDeserialize for OutputAmounts<T>where
T: BorshDeserialize,
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<T> BorshSerialize for OutputAmounts<T>where
T: BorshSerialize,
impl<T> BorshSerialize for OutputAmounts<T>where
T: BorshSerialize,
Source§impl<T: Clone> Clone for OutputAmounts<T>
impl<T: Clone> Clone for OutputAmounts<T>
Source§fn clone(&self) -> OutputAmounts<T>
fn clone(&self) -> OutputAmounts<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for OutputAmounts<T>
impl<T: Debug> Debug for OutputAmounts<T>
Source§impl<T: Default> Default for OutputAmounts<T>
impl<T: Default> Default for OutputAmounts<T>
Source§fn default() -> OutputAmounts<T>
fn default() -> OutputAmounts<T>
Returns the “default value” for a type. Read more
Source§impl<'de, T> Deserialize<'de> for OutputAmounts<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for OutputAmounts<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: InitSpace> InitSpace for OutputAmounts<T>
Available on crate feature gmsol-utils only.
impl<T: InitSpace> InitSpace for OutputAmounts<T>
Available on crate feature
gmsol-utils only.Source§const INIT_SPACE: usize
const INIT_SPACE: usize
Init Space.
Source§impl<T> Serialize for OutputAmounts<T>where
T: Serialize,
impl<T> Serialize for OutputAmounts<T>where
T: Serialize,
impl<T: Copy> Copy for OutputAmounts<T>
Auto Trait Implementations§
impl<T> Freeze for OutputAmounts<T>where
T: Freeze,
impl<T> RefUnwindSafe for OutputAmounts<T>where
T: RefUnwindSafe,
impl<T> Send for OutputAmounts<T>where
T: Send,
impl<T> Sync for OutputAmounts<T>where
T: Sync,
impl<T> Unpin for OutputAmounts<T>where
T: Unpin,
impl<T> UnwindSafe for OutputAmounts<T>where
T: UnwindSafe,
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