pub struct UiStakeConfig {
pub warmup_cooldown_rate: f64,
pub slash_penalty: u8,
}
๐Deprecated since 1.16.7: Please use
solana_sdk::stake::state::warmup_cooldown_rate()
insteadFieldsยง
ยงwarmup_cooldown_rate: f64
๐Deprecated since 1.16.7: Please use
ยงsolana_sdk::stake::state::warmup_cooldown_rate()
insteadslash_penalty: u8
๐Deprecated since 1.16.7: Please use
solana_sdk::stake::state::warmup_cooldown_rate()
insteadTrait Implementationsยง
Sourceยงimpl Debug for UiStakeConfig
impl Debug for UiStakeConfig
Sourceยงimpl<'de> Deserialize<'de> for UiStakeConfig
impl<'de> Deserialize<'de> for UiStakeConfig
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 From<Config> for UiStakeConfig
impl From<Config> for UiStakeConfig
Sourceยงfn from(config: StakeConfig) -> Self
fn from(config: StakeConfig) -> Self
Converts to this type from the input type.
Sourceยงimpl PartialEq for UiStakeConfig
impl PartialEq for UiStakeConfig
Sourceยงimpl Serialize for UiStakeConfig
impl Serialize for UiStakeConfig
impl StructuralPartialEq for UiStakeConfig
Auto Trait Implementationsยง
impl Freeze for UiStakeConfig
impl RefUnwindSafe for UiStakeConfig
impl Send for UiStakeConfig
impl Sync for UiStakeConfig
impl Unpin for UiStakeConfig
impl UnwindSafe for UiStakeConfig
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> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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