pub struct ProposalsInner {
pub id: String,
pub tx_hash: String,
pub cert_index: i32,
pub governance_type: GovernanceType,
}Fields§
§id: StringGovernance Action Identifier (CIP-0129)
tx_hash: StringHash of the proposal transaction.
cert_index: i32Index of the certificate within the proposal transaction.
governance_type: GovernanceTypeType of proposal.
Implementations§
Source§impl ProposalsInner
impl ProposalsInner
pub fn new( id: String, tx_hash: String, cert_index: i32, governance_type: GovernanceType, ) -> ProposalsInner
Trait Implementations§
Source§impl Clone for ProposalsInner
impl Clone for ProposalsInner
Source§fn clone(&self) -> ProposalsInner
fn clone(&self) -> ProposalsInner
Returns a duplicate 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 ProposalsInner
impl Debug for ProposalsInner
Source§impl Default for ProposalsInner
impl Default for ProposalsInner
Source§fn default() -> ProposalsInner
fn default() -> ProposalsInner
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProposalsInner
impl<'de> Deserialize<'de> for ProposalsInner
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 ProposalsInner
impl PartialEq for ProposalsInner
Source§impl Serialize for ProposalsInner
impl Serialize for ProposalsInner
impl StructuralPartialEq for ProposalsInner
Auto Trait Implementations§
impl Freeze for ProposalsInner
impl RefUnwindSafe for ProposalsInner
impl Send for ProposalsInner
impl Sync for ProposalsInner
impl Unpin for ProposalsInner
impl UnwindSafe for ProposalsInner
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