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