pub struct DelegateWithAccount {
pub username: String,
pub vote: String,
pub rewards: String,
pub produced_blocks: u32,
pub missed_blocks: u32,
pub rank: u16,
pub productivity: f32,
pub approval: f32,
pub account: Option<HashMap<String, String>>,
}
Fields§
§username: String
§vote: String
§rewards: String
§produced_blocks: u32
§missed_blocks: u32
§rank: u16
§productivity: f32
§approval: f32
§account: Option<HashMap<String, String>>
Trait Implementations§
Source§impl Clone for DelegateWithAccount
impl Clone for DelegateWithAccount
Source§fn clone(&self) -> DelegateWithAccount
fn clone(&self) -> DelegateWithAccount
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DelegateWithAccount
impl Debug for DelegateWithAccount
Source§impl Default for DelegateWithAccount
impl Default for DelegateWithAccount
Source§fn default() -> DelegateWithAccount
fn default() -> DelegateWithAccount
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DelegateWithAccount
impl<'de> Deserialize<'de> for DelegateWithAccount
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 PartialEq for DelegateWithAccount
impl PartialEq for DelegateWithAccount
impl StructuralPartialEq for DelegateWithAccount
Auto Trait Implementations§
impl Freeze for DelegateWithAccount
impl RefUnwindSafe for DelegateWithAccount
impl Send for DelegateWithAccount
impl Sync for DelegateWithAccount
impl Unpin for DelegateWithAccount
impl UnwindSafe for DelegateWithAccount
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> 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>
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