pub struct ProposalMetadataV2Error {
pub code: Code,
pub message: String,
}Expand description
ProposalMetadataV2Error : Present when metadata could not be fetched or validated.
Fields§
§code: CodeStable machine-readable error code.
message: StringHuman-readable description of the error.
Implementations§
Source§impl ProposalMetadataV2Error
impl ProposalMetadataV2Error
Sourcepub fn new(code: Code, message: String) -> ProposalMetadataV2Error
pub fn new(code: Code, message: String) -> ProposalMetadataV2Error
Present when metadata could not be fetched or validated.
Trait Implementations§
Source§impl Clone for ProposalMetadataV2Error
impl Clone for ProposalMetadataV2Error
Source§fn clone(&self) -> ProposalMetadataV2Error
fn clone(&self) -> ProposalMetadataV2Error
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 ProposalMetadataV2Error
impl Debug for ProposalMetadataV2Error
Source§impl Default for ProposalMetadataV2Error
impl Default for ProposalMetadataV2Error
Source§fn default() -> ProposalMetadataV2Error
fn default() -> ProposalMetadataV2Error
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProposalMetadataV2Error
impl<'de> Deserialize<'de> for ProposalMetadataV2Error
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 ProposalMetadataV2Error
impl PartialEq for ProposalMetadataV2Error
Source§impl Serialize for ProposalMetadataV2Error
impl Serialize for ProposalMetadataV2Error
impl StructuralPartialEq for ProposalMetadataV2Error
Auto Trait Implementations§
impl Freeze for ProposalMetadataV2Error
impl RefUnwindSafe for ProposalMetadataV2Error
impl Send for ProposalMetadataV2Error
impl Sync for ProposalMetadataV2Error
impl Unpin for ProposalMetadataV2Error
impl UnwindSafe for ProposalMetadataV2Error
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