Enum hdk_crud::example::ExampleSignalData [−][src]
pub enum ExampleSignalData {
Create(ExampleWireEntry),
Update(ExampleWireEntry),
Delete(WrappedHeaderHash),
}
Expand description
Distinguishes between what data structures should be passed to the UI based on different action types, like create/update/delete this will be used to send these data structures as signals to the UI When Create/Update, we will pass the actual new Entry but when doing Delete we will naturally only pass the HeaderHash
Variants
Tuple Fields of Create
Tuple Fields of Update
Tuple Fields of Delete
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ExampleSignalData
impl Send for ExampleSignalData
impl Sync for ExampleSignalData
impl Unpin for ExampleSignalData
impl UnwindSafe for ExampleSignalData
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more