Struct casper_rust_wasm_sdk::watcher::Failure
source · pub struct Failure {
pub cost: String,
pub error_message: String,
}
Expand description
Represents a failure response containing an error message.
Fields§
§cost: String
§error_message: String
Trait Implementations§
source§impl<'de> Deserialize<'de> for Failure
impl<'de> Deserialize<'de> for Failure
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 FromWasmAbi for Failure
impl FromWasmAbi for Failure
source§impl IntoWasmAbi for Failure
impl IntoWasmAbi for Failure
source§impl LongRefFromWasmAbi for Failure
impl LongRefFromWasmAbi for Failure
source§impl OptionFromWasmAbi for Failure
impl OptionFromWasmAbi for Failure
source§impl OptionIntoWasmAbi for Failure
impl OptionIntoWasmAbi for Failure
source§impl RefFromWasmAbi for Failure
impl RefFromWasmAbi for Failure
source§impl RefMutFromWasmAbi for Failure
impl RefMutFromWasmAbi for Failure
source§impl TryFromJsValue for Failure
impl TryFromJsValue for Failure
source§impl VectorFromWasmAbi for Failure
impl VectorFromWasmAbi for Failure
source§impl VectorIntoWasmAbi for Failure
impl VectorIntoWasmAbi for Failure
Auto Trait Implementations§
impl Freeze for Failure
impl RefUnwindSafe for Failure
impl Send for Failure
impl Sync for Failure
impl Unpin for Failure
impl UnwindSafe for Failure
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.