pub struct ProposalMetadataV2 {
pub id: String,
pub tx_hash: String,
pub cert_index: i32,
pub url: String,
pub hash: String,
pub json_metadata: Option<Value>,
pub bytes: Option<String>,
pub error: Option<Box<ProposalMetadataV2Error>>,
}Fields§
§id: StringGovernance Action Identifier (CIP-0129)
tx_hash: StringOff-chain metadata of a proposal with a specific transaction hash
cert_index: i32Off-chain metadata of a proposal with a specific transaction cert_index
url: StringURL to the proposal metadata
hash: StringHash of the metadata file
json_metadata: Option<Value>Content of the JSON metadata (validated CIP-108)
bytes: Option<String>Content of the metadata (raw)
error: Option<Box<ProposalMetadataV2Error>>Implementations§
Trait Implementations§
Source§impl Clone for ProposalMetadataV2
impl Clone for ProposalMetadataV2
Source§fn clone(&self) -> ProposalMetadataV2
fn clone(&self) -> ProposalMetadataV2
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 ProposalMetadataV2
impl Debug for ProposalMetadataV2
Source§impl Default for ProposalMetadataV2
impl Default for ProposalMetadataV2
Source§fn default() -> ProposalMetadataV2
fn default() -> ProposalMetadataV2
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProposalMetadataV2
impl<'de> Deserialize<'de> for ProposalMetadataV2
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 ProposalMetadataV2
impl PartialEq for ProposalMetadataV2
Source§impl Serialize for ProposalMetadataV2
impl Serialize for ProposalMetadataV2
impl StructuralPartialEq for ProposalMetadataV2
Auto Trait Implementations§
impl Freeze for ProposalMetadataV2
impl RefUnwindSafe for ProposalMetadataV2
impl Send for ProposalMetadataV2
impl Sync for ProposalMetadataV2
impl Unpin for ProposalMetadataV2
impl UnwindSafe for ProposalMetadataV2
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