pub enum UpdateData<'a> {
State(State<'a>),
Delta(StateDelta<'a>),
StateAndDelta {
state: State<'a>,
delta: StateDelta<'a>,
},
RelatedState {
related_to: ContractInstanceId,
state: State<'a>,
},
RelatedDelta {
related_to: ContractInstanceId,
delta: StateDelta<'a>,
},
RelatedStateAndDelta {
related_to: ContractInstanceId,
state: State<'a>,
delta: StateDelta<'a>,
},
}
Expand description
Update notifications for a contract or a related contract.
Variants§
State(State<'a>)
Delta(StateDelta<'a>)
StateAndDelta
RelatedState
RelatedDelta
RelatedStateAndDelta
Implementations§
Source§impl UpdateData<'_>
impl UpdateData<'_>
pub fn size(&self) -> usize
pub fn unwrap_delta(&self) -> &StateDelta<'_>
Sourcepub fn into_owned(self) -> UpdateData<'static>
pub fn into_owned(self) -> UpdateData<'static>
Copies the data if not owned and returns an owned version of self.
Trait Implementations§
Source§impl<'a> Clone for UpdateData<'a>
impl<'a> Clone for UpdateData<'a>
Source§fn clone(&self) -> UpdateData<'a>
fn clone(&self) -> UpdateData<'a>
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<'a> Debug for UpdateData<'a>
impl<'a> Debug for UpdateData<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for UpdateData<'a>
impl<'de: 'a, 'a> Deserialize<'de> for UpdateData<'a>
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<'a> From<StateDelta<'a>> for UpdateData<'a>
impl<'a> From<StateDelta<'a>> for UpdateData<'a>
Source§fn from(delta: StateDelta<'a>) -> Self
fn from(delta: StateDelta<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for UpdateData<'a>
impl<'a> PartialEq for UpdateData<'a>
Source§impl<'a> Serialize for UpdateData<'a>
impl<'a> Serialize for UpdateData<'a>
impl<'a> Eq for UpdateData<'a>
impl<'a> StructuralPartialEq for UpdateData<'a>
Auto Trait Implementations§
impl<'a> Freeze for UpdateData<'a>
impl<'a> RefUnwindSafe for UpdateData<'a>
impl<'a> Send for UpdateData<'a>
impl<'a> Sync for UpdateData<'a>
impl<'a> Unpin for UpdateData<'a>
impl<'a> UnwindSafe for UpdateData<'a>
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