pub struct UnassignedEvent {
pub reassignment_id: String,
pub contract_id: String,
pub template_id: Option<Identifier>,
pub source: String,
pub target: String,
pub submitter: String,
pub reassignment_counter: u64,
pub assignment_exclusivity: Option<Timestamp>,
pub witness_parties: Vec<String>,
pub package_name: String,
pub offset: i64,
pub node_id: i32,
}Expand description
Records that a contract has been unassigned, and it becomes unusable on the source synchronizer
Fields§
§reassignment_id: StringThe ID of the unassignment. This needs to be used as an input for a assign ReassignmentCommand.
Must be a valid LedgerString (as described in value.proto).
Required
contract_id: StringThe ID of the reassigned contract.
Must be a valid LedgerString (as described in value.proto).
Required
template_id: Option<Identifier>The template of the reassigned contract. The identifier uses the package-id reference format.
Required
source: StringThe ID of the source synchronizer Must be a valid synchronizer id
Required
target: StringThe ID of the target synchronizer Must be a valid synchronizer id
Required
submitter: StringParty on whose behalf the unassign command was executed.
Empty if the unassignment happened offline via the repair service.
Must be a valid PartyIdString (as described in value.proto).
Optional
reassignment_counter: u64Each 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.
Required
assignment_exclusivity: Option<Timestamp>Assignment exclusivity Before this time (measured on the target synchronizer), only the submitter of the unassignment can initiate the assignment Defined for reassigning participants.
Optional
witness_parties: Vec<String>The parties that are notified of this event.
Required: must be non-empty
package_name: StringThe package name of the contract.
Required
offset: i64The offset of origin. Offsets are managed by the participant nodes. Reassignments can thus NOT be assumed to have the same offsets on different participant nodes. Must be a valid absolute offset (positive integer)
Required
node_id: i32The position of this event in the originating reassignment. Node IDs are not necessarily equal across participants, as these may see different projections/parts of reassignments. Must be valid node ID (non-negative integer)
Required
Trait Implementations§
Source§impl Clone for UnassignedEvent
impl Clone for UnassignedEvent
Source§fn clone(&self) -> UnassignedEvent
fn clone(&self) -> UnassignedEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UnassignedEvent
impl Debug for UnassignedEvent
Source§impl Default for UnassignedEvent
impl Default for UnassignedEvent
Source§fn default() -> UnassignedEvent
fn default() -> UnassignedEvent
impl Eq for UnassignedEvent
Source§impl Hash for UnassignedEvent
impl Hash for UnassignedEvent
Source§impl Message for UnassignedEvent
impl Message for UnassignedEvent
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for UnassignedEvent
impl PartialEq for UnassignedEvent
impl StructuralPartialEq for UnassignedEvent
Auto Trait Implementations§
impl Freeze for UnassignedEvent
impl RefUnwindSafe for UnassignedEvent
impl Send for UnassignedEvent
impl Sync for UnassignedEvent
impl Unpin for UnassignedEvent
impl UnsafeUnpin for UnassignedEvent
impl UnwindSafe for UnassignedEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request