pub struct JsActiveContract {
pub created_event: Box<CreatedEvent>,
pub synchronizer_id: String,
pub reassignment_counter: i64,
}
Fields§
§created_event: Box<CreatedEvent>
§synchronizer_id: String
A valid synchronizer id Required
reassignment_counter: i64
Each corresponding assigned and unassigned event has the same reassignment_counter. This strictly increases with each unassign command for the same contract. Creation of the contract corresponds to reassignment_counter equals zero. This field will be the reassignment_counter of the latest observable activation event on this synchronizer, which is before the active_at_offset. Required
Implementations§
Source§impl JsActiveContract
impl JsActiveContract
pub fn new( created_event: CreatedEvent, synchronizer_id: String, reassignment_counter: i64, ) -> JsActiveContract
Trait Implementations§
Source§impl Clone for JsActiveContract
impl Clone for JsActiveContract
Source§fn clone(&self) -> JsActiveContract
fn clone(&self) -> JsActiveContract
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 JsActiveContract
impl Debug for JsActiveContract
Source§impl Default for JsActiveContract
impl Default for JsActiveContract
Source§fn default() -> JsActiveContract
fn default() -> JsActiveContract
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JsActiveContract
impl<'de> Deserialize<'de> for JsActiveContract
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 PartialEq for JsActiveContract
impl PartialEq for JsActiveContract
Source§impl Serialize for JsActiveContract
impl Serialize for JsActiveContract
impl StructuralPartialEq for JsActiveContract
Auto Trait Implementations§
impl Freeze for JsActiveContract
impl RefUnwindSafe for JsActiveContract
impl Send for JsActiveContract
impl Sync for JsActiveContract
impl Unpin for JsActiveContract
impl UnwindSafe for JsActiveContract
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