Struct jormungandr_lib::interfaces::account_state::DelegationType
source · pub struct DelegationType {
pools: Vec<(Hash, u8)>,
}
Fields§
§pools: Vec<(Hash, u8)>
Implementations§
Trait Implementations§
source§impl Clone for DelegationType
impl Clone for DelegationType
source§fn clone(&self) -> DelegationType
fn clone(&self) -> DelegationType
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 DelegationType
impl Debug for DelegationType
source§impl<'de> Deserialize<'de> for DelegationType
impl<'de> Deserialize<'de> for DelegationType
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<DelegationType> for DelegationType
impl From<DelegationType> for DelegationType
source§fn from(dt: DelegationType) -> Self
fn from(dt: DelegationType) -> Self
Converts to this type from the input type.
source§impl From<DelegationType> for DelegationType
impl From<DelegationType> for DelegationType
source§impl Hash for DelegationType
impl Hash for DelegationType
source§impl Ord for DelegationType
impl Ord for DelegationType
source§fn cmp(&self, other: &DelegationType) -> Ordering
fn cmp(&self, other: &DelegationType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<DelegationType> for DelegationType
impl PartialEq<DelegationType> for DelegationType
source§fn eq(&self, other: &DelegationType) -> bool
fn eq(&self, other: &DelegationType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DelegationType> for DelegationType
impl PartialOrd<DelegationType> for DelegationType
source§fn partial_cmp(&self, other: &DelegationType) -> Option<Ordering>
fn partial_cmp(&self, other: &DelegationType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for DelegationType
impl Serialize for DelegationType
impl Eq for DelegationType
impl StructuralEq for DelegationType
impl StructuralPartialEq for DelegationType
Auto Trait Implementations§
impl RefUnwindSafe for DelegationType
impl Send for DelegationType
impl Sync for DelegationType
impl Unpin for DelegationType
impl UnwindSafe for DelegationType
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