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§fn eq(&self, other: &UiStakeConfig) -> bool
fn eq(&self, other: &UiStakeConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for UiStakeConfig
impl Serialize for UiStakeConfig
impl StructuralPartialEq for UiStakeConfig
Auto Trait Implementations§
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> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, _digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
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