Enum hdk_crud::signals::SignalData [−][src]
pub enum SignalData<T> {
Create(WireElement<T>),
Update(WireElement<T>),
Delete(HeaderHashB64),
}
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
Create(WireElement<T>)
Tuple Fields
0: WireElement<T>
Update(WireElement<T>)
Tuple Fields
0: WireElement<T>
Delete(HeaderHashB64)
Tuple Fields
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 !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for SignalData<T> where
T: RefUnwindSafe,
impl<T> Send for SignalData<T> where
T: Send,
impl<T> Sync for SignalData<T> where
T: Sync,
impl<T> Unpin for SignalData<T> where
T: Unpin,
impl<T> UnwindSafe for SignalData<T> where
T: UnwindSafe,
Blanket Implementations
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
TODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745 Read more
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more