pub struct Drep {
pub drep_id: String,
pub hex: String,
pub amount: String,
pub active: bool,
pub active_epoch: Option<i32>,
pub has_script: bool,
}Fields§
§drep_id: StringBech32 encoded DRep address
hex: StringThe raw bytes of the DRep
amount: StringThe total amount of voting power this DRep is delegated.
active: boolRegistration state of the DRep
active_epoch: Option<i32>Epoch of the most recent action - registration or deregistration
has_script: boolFlag which shows if this DRep credentials are a script hash
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Drep
impl<'de> Deserialize<'de> for Drep
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
impl StructuralPartialEq for Drep
Auto Trait Implementations§
impl Freeze for Drep
impl RefUnwindSafe for Drep
impl Send for Drep
impl Sync for Drep
impl Unpin for Drep
impl UnwindSafe for Drep
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