pub struct SubscribeContractResponse {
pub contract_id: ContractInstanceId,
pub result: Result<(), String>,
pub context: DelegateContext,
}Expand description
Response after attempting to subscribe to a contract from a delegate.
Note: This confirms subscription registration only. Actual notification delivery to the delegate when the contract updates is not yet implemented and will require the async delegate v2 API.
Fields§
§contract_id: ContractInstanceIdThe contract subscribed to.
result: Result<(), String>Success (Ok) or error message (Err).
context: DelegateContextContext for the delegate.
Trait Implementations§
Source§impl Clone for SubscribeContractResponse
impl Clone for SubscribeContractResponse
Source§fn clone(&self) -> SubscribeContractResponse
fn clone(&self) -> SubscribeContractResponse
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 SubscribeContractResponse
impl Debug for SubscribeContractResponse
Source§impl<'de> Deserialize<'de> for SubscribeContractResponse
impl<'de> Deserialize<'de> for SubscribeContractResponse
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
Auto Trait Implementations§
impl Freeze for SubscribeContractResponse
impl RefUnwindSafe for SubscribeContractResponse
impl Send for SubscribeContractResponse
impl Sync for SubscribeContractResponse
impl Unpin for SubscribeContractResponse
impl UnwindSafe for SubscribeContractResponse
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