pub struct UpdatesRequest { /* private fields */ }Expand description
A builder for CantonClient::updates_with /
CantonClient::updates_resumable_with: the update stream with the full
request surface exposed.
Implementations§
Source§impl UpdatesRequest
impl UpdatesRequest
Sourcepub fn new(parties: Vec<String>, begin_exclusive: i64) -> Self
pub fn new(parties: Vec<String>, begin_exclusive: i64) -> Self
Updates visible to parties, starting after begin_exclusive. The
defaults beyond that are the plain updates ones: unbounded,
ledger-effects shape, all templates, reassignments included, verbose
(labelled) records.
Sourcepub fn until(self, end_inclusive: i64) -> Self
pub fn until(self, end_inclusive: i64) -> Self
Bound the stream: only updates at offsets <= end_inclusive, after
which the stream ends. This is the catch-up/sync-tool form — without
it the stream is live and never terminates.
Sourcepub fn descending(self) -> Self
pub fn descending(self) -> Self
Return updates in descending offset order (newest first). Requires a
bounded request (Self::until); rejected on the resumable stream,
whose position tracking assumes ascending order.
Sourcepub fn for_any_party(self) -> Self
pub fn for_any_party(self) -> Self
Additionally apply this request’s filter set for any party the
token can read for (filters_for_any_party) — the full-ledger
ingestion form. Requires wildcard read authorization on the
participant; the explicit parties list (which may be empty) is still
applied on top.
Sourcepub fn with_shape(self, shape: TransactionShape) -> Self
pub fn with_shape(self, shape: TransactionShape) -> Self
Select the transaction shape (default: ledger effects).
Sourcepub fn for_templates<I, S>(self, template_ids: I) -> Result<Self>
pub fn for_templates<I, S>(self, template_ids: I) -> Result<Self>
Only events of these templates. Each id is package:Module:Entity,
where package is a package id or a #package-name reference (the
SCU-friendly form). May be combined with Self::for_interfaces;
each call adds to the filter.
§Errors
Returns Error::InvalidRequest on a malformed id.
Sourcepub fn for_interfaces<I, S>(self, interface_ids: I) -> Result<Self>
pub fn for_interfaces<I, S>(self, interface_ids: I) -> Result<Self>
Only events of contracts implementing these interfaces (the returned
created events carry the interface views). Same id format and
accumulation as Self::for_templates.
§Errors
Returns Error::InvalidRequest on a malformed id.
Sourcepub fn with_created_event_blobs(self) -> Self
pub fn with_created_event_blobs(self) -> Self
Include each created event’s created_event_blob, for use as a
disclosed contract in later commands.
Sourcepub fn without_reassignments(self) -> Self
pub fn without_reassignments(self) -> Self
Exclude reassignment events (included by default).
Sourcepub fn with_topology_events(self) -> Self
pub fn with_topology_events(self) -> Self
Include participant-authorization topology events for the requested parties (excluded by default).
Sourcepub fn non_verbose(self) -> Self
pub fn non_verbose(self) -> Self
Omit record labels from the returned values (verbose is the default). Non-verbose payloads are smaller; typed decoding handles both.
Trait Implementations§
Source§impl Clone for UpdatesRequest
impl Clone for UpdatesRequest
Source§fn clone(&self) -> UpdatesRequest
fn clone(&self) -> UpdatesRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for UpdatesRequest
impl RefUnwindSafe for UpdatesRequest
impl Send for UpdatesRequest
impl Sync for UpdatesRequest
impl Unpin for UpdatesRequest
impl UnsafeUnpin for UpdatesRequest
impl UnwindSafe for UpdatesRequest
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<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