pub struct SplTokenAdditionalDataV2 {
pub decimals: u8,
pub interest_bearing_config: Option<(InterestBearingConfig, UnixTimestamp)>,
pub scaled_ui_amount_config: Option<(ScaledUiAmountConfig, UnixTimestamp)>,
}
Fields§
§decimals: u8
§interest_bearing_config: Option<(InterestBearingConfig, UnixTimestamp)>
§scaled_ui_amount_config: Option<(ScaledUiAmountConfig, UnixTimestamp)>
Implementations§
Source§impl SplTokenAdditionalDataV2
impl SplTokenAdditionalDataV2
pub fn with_decimals(decimals: u8) -> Self
Trait Implementations§
Source§impl Clone for SplTokenAdditionalDataV2
impl Clone for SplTokenAdditionalDataV2
Source§fn clone(&self) -> SplTokenAdditionalDataV2
fn clone(&self) -> SplTokenAdditionalDataV2
Returns a copy 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 Default for SplTokenAdditionalDataV2
impl Default for SplTokenAdditionalDataV2
Source§fn default() -> SplTokenAdditionalDataV2
fn default() -> SplTokenAdditionalDataV2
Returns the “default value” for a type. Read more
Source§impl From<SplTokenAdditionalData> for SplTokenAdditionalDataV2
impl From<SplTokenAdditionalData> for SplTokenAdditionalDataV2
Source§fn from(v: SplTokenAdditionalData) -> Self
fn from(v: SplTokenAdditionalData) -> Self
Converts to this type from the input type.
impl Copy for SplTokenAdditionalDataV2
Auto Trait Implementations§
impl Freeze for SplTokenAdditionalDataV2
impl RefUnwindSafe for SplTokenAdditionalDataV2
impl Send for SplTokenAdditionalDataV2
impl Sync for SplTokenAdditionalDataV2
impl Unpin for SplTokenAdditionalDataV2
impl UnwindSafe for SplTokenAdditionalDataV2
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