pub struct DrepsInner {
pub drep_id: String,
pub hex: String,
pub amount: String,
pub has_script: bool,
pub retired: bool,
pub expired: bool,
pub last_active_epoch: Option<i32>,
pub metadata: Option<Box<DrepsInnerMetadata>>,
}Fields§
§drep_id: StringThe Bech32 encoded DRep address
hex: StringThe raw bytes of the DRep
amount: StringThe total amount of voting power this DRep is delegated.
has_script: boolFlag indicating whether this DRep’s credential is a script hash
retired: boolRegistration state of the DRep. Set to true if the DRep has been deregistered; otherwise, false.
expired: boolWhether the DRep has been inactive for a consecutive number of epochs (determined by an epoch parameter drep_activity)
last_active_epoch: Option<i32>Epoch of the most recent action - registration, update, deregistration or voting
metadata: Option<Box<DrepsInnerMetadata>>Implementations§
Trait Implementations§
Source§impl Clone for DrepsInner
impl Clone for DrepsInner
Source§fn clone(&self) -> DrepsInner
fn clone(&self) -> DrepsInner
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DrepsInner
impl Debug for DrepsInner
Source§impl Default for DrepsInner
impl Default for DrepsInner
Source§fn default() -> DrepsInner
fn default() -> DrepsInner
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DrepsInner
impl<'de> Deserialize<'de> for DrepsInner
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 DrepsInner
impl PartialEq for DrepsInner
Source§impl Serialize for DrepsInner
impl Serialize for DrepsInner
impl StructuralPartialEq for DrepsInner
Auto Trait Implementations§
impl Freeze for DrepsInner
impl RefUnwindSafe for DrepsInner
impl Send for DrepsInner
impl Sync for DrepsInner
impl Unpin for DrepsInner
impl UnsafeUnpin for DrepsInner
impl UnwindSafe for DrepsInner
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