pub struct SplTokenAdditionalData {
pub decimals: u8,
pub 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.
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.
Implementationsยง
Sourceยงimpl SplTokenAdditionalData
impl SplTokenAdditionalData
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 SplTokenAdditionalData
impl Clone for SplTokenAdditionalData
Sourceยงfn clone(&self) -> SplTokenAdditionalData
fn clone(&self) -> SplTokenAdditionalData
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl Default for SplTokenAdditionalData
impl Default for SplTokenAdditionalData
Sourceยงfn default() -> SplTokenAdditionalData
fn default() -> SplTokenAdditionalData
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 SplTokenAdditionalData
Auto Trait Implementationsยง
impl Freeze for SplTokenAdditionalData
impl RefUnwindSafe for SplTokenAdditionalData
impl Send for SplTokenAdditionalData
impl Sync for SplTokenAdditionalData
impl Unpin for SplTokenAdditionalData
impl UnsafeUnpin for SplTokenAdditionalData
impl UnwindSafe for SplTokenAdditionalData
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