Struct casper_rust_wasm_sdk::watcher::Version2
source · pub struct Version2 {
pub initiator: PublicKeyString,
pub error_message: Option<String>,
pub limit: String,
pub consumed: String,
pub cost: String,
}
Expand description
Represents a success response containing a cost value.
Fields§
§initiator: PublicKeyString
§error_message: Option<String>
§limit: String
§consumed: String
§cost: String
Trait Implementations§
source§impl<'de> Deserialize<'de> for Version2
impl<'de> Deserialize<'de> for Version2
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 Version2
impl FromWasmAbi for Version2
source§impl IntoWasmAbi for Version2
impl IntoWasmAbi for Version2
source§impl LongRefFromWasmAbi for Version2
impl LongRefFromWasmAbi for Version2
source§impl OptionFromWasmAbi for Version2
impl OptionFromWasmAbi for Version2
source§impl OptionIntoWasmAbi for Version2
impl OptionIntoWasmAbi for Version2
source§impl RefFromWasmAbi for Version2
impl RefFromWasmAbi for Version2
source§impl RefMutFromWasmAbi for Version2
impl RefMutFromWasmAbi for Version2
source§impl TryFromJsValue for Version2
impl TryFromJsValue for Version2
source§impl VectorFromWasmAbi for Version2
impl VectorFromWasmAbi for Version2
source§impl VectorIntoWasmAbi for Version2
impl VectorIntoWasmAbi for Version2
Auto Trait Implementations§
impl Freeze for Version2
impl RefUnwindSafe for Version2
impl Send for Version2
impl Sync for Version2
impl Unpin for Version2
impl UnwindSafe for Version2
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
.