pub struct UpdateContractRequest {
pub contract_id: ContractInstanceId,
pub update: UpdateData<'static>,
pub context: DelegateContext,
pub processed: bool,
}Expand description
Request to update an existing contract’s state from within a delegate.
Fields§
§contract_id: ContractInstanceIdThe contract to update.
update: UpdateData<'static>The update to apply (full state or delta).
context: DelegateContextContext for the delegate.
processed: boolWhether this request has been processed.
Implementations§
Source§impl UpdateContractRequest
impl UpdateContractRequest
pub fn new(contract_id: ContractInstanceId, update: UpdateData<'static>) -> Self
Trait Implementations§
Source§impl Clone for UpdateContractRequest
impl Clone for UpdateContractRequest
Source§fn clone(&self) -> UpdateContractRequest
fn clone(&self) -> UpdateContractRequest
Returns a duplicate 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 UpdateContractRequest
impl Debug for UpdateContractRequest
Source§impl<'de> Deserialize<'de> for UpdateContractRequest
impl<'de> Deserialize<'de> for UpdateContractRequest
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<UpdateContractRequest> for OutboundDelegateMsg
impl From<UpdateContractRequest> for OutboundDelegateMsg
Source§fn from(req: UpdateContractRequest) -> Self
fn from(req: UpdateContractRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UpdateContractRequest
impl RefUnwindSafe for UpdateContractRequest
impl Send for UpdateContractRequest
impl Sync for UpdateContractRequest
impl Unpin for UpdateContractRequest
impl UnsafeUnpin for UpdateContractRequest
impl UnwindSafe for UpdateContractRequest
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