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