pub struct Completion1 {
pub command_id: String,
pub status: Option<Box<Status>>,
pub update_id: String,
pub user_id: String,
pub act_as: Option<Vec<String>>,
pub submission_id: String,
pub deduplication_period: Box<DeduplicationPeriod1>,
pub trace_context: Option<Box<TraceContext>>,
pub offset: i64,
pub synchronizer_time: Option<Box<SynchronizerTime>>,
}
Expand description
Completion1 : A completion represents the status of a submitted command on the ledger: it can be successful or failed.
Fields§
§command_id: String
The ID of the succeeded or failed command. Must be a valid LedgerString (as described in value.proto
). Required
status: Option<Box<Status>>
§update_id: String
The update_id of the transaction or reassignment that resulted from the command with command_id. Only set for successfully executed commands. Must be a valid LedgerString (as described in value.proto
).
user_id: String
The user-id that was used for the submission, as described in commands.proto
. Must be a valid UserIdString (as described in value.proto
). Optional for historic completions where this data is not available.
act_as: Option<Vec<String>>
The set of parties on whose behalf the commands were executed. Contains the act_as
parties from commands.proto
filtered to the requesting parties in CompletionStreamRequest. The order of the parties need not be the same as in the submission. Each element must be a valid PartyIdString (as described in value.proto
). Optional for historic completions where this data is not available.
submission_id: String
The submission ID this completion refers to, as described in commands.proto
. Must be a valid LedgerString (as described in value.proto
). Optional
deduplication_period: Box<DeduplicationPeriod1>
§trace_context: Option<Box<TraceContext>>
§offset: i64
May be used in a subsequent CompletionStreamRequest to resume the consumption of this stream at a later time. Required, must be a valid absolute offset (positive integer).
synchronizer_time: Option<Box<SynchronizerTime>>
Implementations§
Source§impl Completion1
impl Completion1
Sourcepub fn new(
command_id: String,
update_id: String,
user_id: String,
submission_id: String,
deduplication_period: DeduplicationPeriod1,
offset: i64,
) -> Completion1
pub fn new( command_id: String, update_id: String, user_id: String, submission_id: String, deduplication_period: DeduplicationPeriod1, offset: i64, ) -> Completion1
A completion represents the status of a submitted command on the ledger: it can be successful or failed.
Trait Implementations§
Source§impl Clone for Completion1
impl Clone for Completion1
Source§fn clone(&self) -> Completion1
fn clone(&self) -> Completion1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more