pub struct InvalidEntityError {
pub type: String,
pub address: String,
}Fields§
§type: StringThe type of error. Each subtype may have its own additional structured fields.
address: StringBech32m-encoded human readable version of the address.
Implementations§
Source§impl InvalidEntityError
impl InvalidEntityError
pub fn new(type: String, address: String) -> InvalidEntityError
Trait Implementations§
Source§impl CandidType for InvalidEntityError
impl CandidType for InvalidEntityError
Source§impl Clone for InvalidEntityError
impl Clone for InvalidEntityError
Source§fn clone(&self) -> InvalidEntityError
fn clone(&self) -> InvalidEntityError
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 InvalidEntityError
impl Debug for InvalidEntityError
Source§impl Default for InvalidEntityError
impl Default for InvalidEntityError
Source§fn default() -> InvalidEntityError
fn default() -> InvalidEntityError
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InvalidEntityError
impl<'de> Deserialize<'de> for InvalidEntityError
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 InvalidEntityError
impl PartialEq for InvalidEntityError
Source§impl Serialize for InvalidEntityError
impl Serialize for InvalidEntityError
impl StructuralPartialEq for InvalidEntityError
Auto Trait Implementations§
impl Freeze for InvalidEntityError
impl RefUnwindSafe for InvalidEntityError
impl Send for InvalidEntityError
impl Sync for InvalidEntityError
impl Unpin for InvalidEntityError
impl UnwindSafe for InvalidEntityError
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