pub struct SplTokenAdditionalDataV2 {
pub decimals: u8,
pub interest_bearing_config: Option<(InterestBearingConfig, UnixTimestamp)>,
pub scaled_ui_amount_config: Option<(ScaledUiAmountConfig, UnixTimestamp)>,
}๐Deprecated since 3.1.0: 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: u8๐Deprecated since 3.1.0: 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.interest_bearing_config: Option<(InterestBearingConfig, UnixTimestamp)>๐Deprecated since 3.1.0: 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)>๐Deprecated since 3.1.0: 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
๐Deprecated since 3.1.0: 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
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 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