pub struct UiDelegation {
pub voter: String,
pub stake: StringAmount,
pub activation_epoch: StringAmount,
pub deactivation_epoch: StringAmount,
pub warmup_cooldown_rate: f64,
}Fields§
§voter: String§stake: StringAmount§activation_epoch: StringAmount§deactivation_epoch: StringAmount§warmup_cooldown_rate: f64👎Deprecated since 1.16.7: Please use
solana_sdk::stake::stake::warmup_cooldown_rate() insteadTrait Implementations§
source§impl Debug for UiDelegation
impl Debug for UiDelegation
source§impl<'de> Deserialize<'de> for UiDelegation
impl<'de> Deserialize<'de> for UiDelegation
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<Delegation> for UiDelegation
impl From<Delegation> for UiDelegation
source§fn from(delegation: Delegation) -> Self
fn from(delegation: Delegation) -> Self
Converts to this type from the input type.
source§impl PartialEq for UiDelegation
impl PartialEq for UiDelegation
source§impl Serialize for UiDelegation
impl Serialize for UiDelegation
impl StructuralPartialEq for UiDelegation
Auto Trait Implementations§
impl Freeze for UiDelegation
impl RefUnwindSafe for UiDelegation
impl Send for UiDelegation
impl Sync for UiDelegation
impl Unpin for UiDelegation
impl UnwindSafe for UiDelegation
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