pub struct SplTokenAdditionalDataV2 {
pub decimals: u8,
pub interest_bearing_config: Option<(InterestBearingConfig, UnixTimestamp)>,
pub scaled_ui_amount_config: Option<(ScaledUiAmountConfig, UnixTimestamp)>,
}This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
Fieldsยง
ยงdecimals: u8This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
interest_bearing_config: Option<(InterestBearingConfig, UnixTimestamp)>This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
scaled_ui_amount_config: Option<(ScaledUiAmountConfig, UnixTimestamp)>This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
Implementationsยง
Sourceยงimpl SplTokenAdditionalDataV2
impl SplTokenAdditionalDataV2
pub fn with_decimals(decimals: u8) -> Self
This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
Trait Implementationsยง
Sourceยงimpl Clone for SplTokenAdditionalDataV2
impl Clone for SplTokenAdditionalDataV2
Sourceยงfn clone(&self) -> SplTokenAdditionalDataV2
fn clone(&self) -> SplTokenAdditionalDataV2
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl Default for SplTokenAdditionalDataV2
impl Default for SplTokenAdditionalDataV2
Sourceยงfn default() -> SplTokenAdditionalDataV2
fn default() -> SplTokenAdditionalDataV2
Sourceยงimpl From<SplTokenAdditionalData> for SplTokenAdditionalDataV2
impl From<SplTokenAdditionalData> for SplTokenAdditionalDataV2
Sourceยงfn from(v: SplTokenAdditionalData) -> Self
fn from(v: SplTokenAdditionalData) -> Self
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 UnsafeUnpin 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
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>
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>
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