Struct casper_types::StoredValueTypeMismatch
source · pub struct StoredValueTypeMismatch { /* private fields */ }
Expand description
An error struct representing a type mismatch in StoredValue
operations.
Implementations§
source§impl TypeMismatch
impl TypeMismatch
sourcepub fn new(expected: String, found: String) -> TypeMismatch
pub fn new(expected: String, found: String) -> TypeMismatch
Creates a new TypeMismatch
.
Trait Implementations§
source§impl Clone for TypeMismatch
impl Clone for TypeMismatch
source§fn clone(&self) -> TypeMismatch
fn clone(&self) -> TypeMismatch
Returns a copy 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 TypeMismatch
impl Debug for TypeMismatch
source§impl<'de> Deserialize<'de> for TypeMismatch
impl<'de> Deserialize<'de> for TypeMismatch
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 Display for TypeMismatch
impl Display for TypeMismatch
source§impl PartialEq for TypeMismatch
impl PartialEq for TypeMismatch
source§fn eq(&self, other: &TypeMismatch) -> bool
fn eq(&self, other: &TypeMismatch) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TypeMismatch
impl Serialize for TypeMismatch
impl Eq for TypeMismatch
impl StructuralEq for TypeMismatch
impl StructuralPartialEq for TypeMismatch
Auto Trait Implementations§
impl RefUnwindSafe for TypeMismatch
impl Send for TypeMismatch
impl Sync for TypeMismatch
impl Unpin for TypeMismatch
impl UnwindSafe for TypeMismatch
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