Struct hdk_crud::chain_actions::delete_action::DeleteAction [−][src]
pub struct DeleteAction {}
Expand description
a struct which implements a delete_action method a method is used instead of a function so that it can be mocked to simplify unit testing
Implementations
pub fn delete_action<T, E, S>(
&self,
header_hash: HeaderHashB64,
entry_type_id: String,
send_signal_to_peers: Option<Vec<AgentPubKey>>
) -> ExternResult<HeaderHashB64> where
Entry: 'static + TryFrom<T, Error = E>,
WasmError: 'static + From<E>,
T: 'static + Clone,
AppEntryBytes: 'static + TryFrom<T, Error = E>,
S: 'static + From<ActionSignal<T>> + Serialize + Debug,
E: 'static,
pub fn delete_action<T, E, S>(
&self,
header_hash: HeaderHashB64,
entry_type_id: String,
send_signal_to_peers: Option<Vec<AgentPubKey>>
) -> ExternResult<HeaderHashB64> where
Entry: 'static + TryFrom<T, Error = E>,
WasmError: 'static + From<E>,
T: 'static + Clone,
AppEntryBytes: 'static + TryFrom<T, Error = E>,
S: 'static + From<ActionSignal<T>> + Serialize + Debug,
E: 'static,
This will mark the entry at address
as “deleted”.
It can also optionally send a signal of this event to all peers supplied in send_signal_to_peers
to all peers returned by the get_peers
call given during the macro call to crud!
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DeleteAction
impl Send for DeleteAction
impl Sync for DeleteAction
impl Unpin for DeleteAction
impl UnwindSafe for DeleteAction
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