Struct hdk_crud::chain_actions::update_action::UpdateAction [−][src]
pub struct UpdateAction {}
Expand description
a struct which implements a update_action method a method is used instead of a function so that it can be mocked to simplify unit testing
Implementations
pub fn update_action<T, E, S>(
&self,
entry: T,
header_hash: HeaderHashB64,
entry_type_id: String,
send_signal_to_peers: Option<Vec<AgentPubKey>>,
add_time_path: Option<String>
) -> ExternResult<WireElement<T>> where
Entry: TryFrom<T, Error = E>,
WasmError: From<E>,
T: 'static + Clone,
AppEntryBytes: TryFrom<T, Error = E>,
S: 'static + From<ActionSignal<T>> + Serialize + Debug,
E: 'static,
pub fn update_action<T, E, S>(
&self,
entry: T,
header_hash: HeaderHashB64,
entry_type_id: String,
send_signal_to_peers: Option<Vec<AgentPubKey>>,
add_time_path: Option<String>
) -> ExternResult<WireElement<T>> where
Entry: TryFrom<T, Error = E>,
WasmError: From<E>,
T: 'static + Clone,
AppEntryBytes: TryFrom<T, Error = E>,
S: 'static + From<ActionSignal<T>> + Serialize + Debug,
E: 'static,
This will add an update to an entry.
It can also optionally send a signal of this event to all peers supplied in send_signal_to_peers
uses ChainTopOrdering::Relaxed
such that multiple updates can be committed in parallel
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for UpdateAction
impl Send for UpdateAction
impl Sync for UpdateAction
impl Unpin for UpdateAction
impl UnwindSafe for UpdateAction
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