Struct casper_rust_wasm_sdk::watcher::EventParseResult
source · pub struct EventParseResult {
pub err: Option<String>,
pub body: Option<Body>,
}
Expand description
Represents the result of parsing an event, containing error information and the event body.
Fields§
§err: Option<String>
§body: Option<Body>
Trait Implementations§
source§impl Clone for EventParseResult
impl Clone for EventParseResult
source§fn clone(&self) -> EventParseResult
fn clone(&self) -> EventParseResult
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 EventParseResult
impl Debug for EventParseResult
source§impl Default for EventParseResult
impl Default for EventParseResult
source§fn default() -> EventParseResult
fn default() -> EventParseResult
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EventParseResult
impl<'de> Deserialize<'de> for EventParseResult
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 From<EventParseResult> for JsValue
impl From<EventParseResult> for JsValue
source§fn from(value: EventParseResult) -> Self
fn from(value: EventParseResult) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for EventParseResult
impl FromWasmAbi for EventParseResult
source§impl IntoWasmAbi for EventParseResult
impl IntoWasmAbi for EventParseResult
source§impl OptionFromWasmAbi for EventParseResult
impl OptionFromWasmAbi for EventParseResult
source§impl OptionIntoWasmAbi for EventParseResult
impl OptionIntoWasmAbi for EventParseResult
source§impl RefFromWasmAbi for EventParseResult
impl RefFromWasmAbi for EventParseResult
§type Anchor = RcRef<EventParseResult>
type Anchor = RcRef<EventParseResult>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.source§impl RefMutFromWasmAbi for EventParseResult
impl RefMutFromWasmAbi for EventParseResult
source§impl Serialize for EventParseResult
impl Serialize for EventParseResult
source§impl TryFromJsValue for EventParseResult
impl TryFromJsValue for EventParseResult
source§impl VectorFromWasmAbi for EventParseResult
impl VectorFromWasmAbi for EventParseResult
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[EventParseResult]>
source§impl VectorIntoJsValue for EventParseResult
impl VectorIntoJsValue for EventParseResult
fn vector_into_jsvalue(vector: Box<[EventParseResult]>) -> JsValue
source§impl VectorIntoWasmAbi for EventParseResult
impl VectorIntoWasmAbi for EventParseResult
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[EventParseResult]>) -> Self::Abi
source§impl WasmDescribeVector for EventParseResult
impl WasmDescribeVector for EventParseResult
Auto Trait Implementations§
impl Freeze for EventParseResult
impl RefUnwindSafe for EventParseResult
impl Send for EventParseResult
impl Sync for EventParseResult
impl Unpin for EventParseResult
impl UnwindSafe for EventParseResult
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
.