pub struct Proposal {
pub tx_hash: String,
pub cert_index: i32,
pub governance_type: GovernanceType,
pub governance_description: Option<HashMap<String, Value>>,
pub deposit: String,
pub return_address: String,
pub ratified_epoch: Option<i32>,
pub enacted_epoch: Option<i32>,
pub dropped_epoch: Option<i32>,
pub expired_epoch: Option<i32>,
pub expiration: i32,
}Fields§
§tx_hash: StringHash of the proposal transaction.
cert_index: i32Index of the certificate within the proposal transaction.
governance_type: GovernanceTypeType of proposal.
governance_description: Option<HashMap<String, Value>>An object describing the content of this GovActionProposal in a readable way.
deposit: StringThe deposit amount paid for this proposal.
return_address: StringBech32 stake address of the reward address to receive the deposit when it is repaid.
ratified_epoch: Option<i32>§enacted_epoch: Option<i32>§dropped_epoch: Option<i32>§expired_epoch: Option<i32>§expiration: i32Shows the epoch at which this governance action will expire.
Implementations§
Source§impl Proposal
impl Proposal
pub fn new( tx_hash: String, cert_index: i32, governance_type: GovernanceType, governance_description: Option<HashMap<String, Value>>, deposit: String, return_address: String, ratified_epoch: Option<i32>, enacted_epoch: Option<i32>, dropped_epoch: Option<i32>, expired_epoch: Option<i32>, expiration: i32, ) -> Proposal
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Proposal
impl<'de> Deserialize<'de> for Proposal
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 Proposal
Auto Trait Implementations§
impl Freeze for Proposal
impl RefUnwindSafe for Proposal
impl Send for Proposal
impl Sync for Proposal
impl Unpin for Proposal
impl UnwindSafe for Proposal
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