pub struct ActiveContractsRequest { /* private fields */ }Expand description
A builder for the Active Contract Set reads
(CantonClient::active_contracts_with,
CantonClient::active_contracts_page_with,
CantonClient::active_contracts_resumable_with): the snapshot with the
full request surface exposed.
Implementations§
Source§impl ActiveContractsRequest
impl ActiveContractsRequest
Sourcepub fn new(parties: Vec<String>, active_at_offset: i64) -> Self
pub fn new(parties: Vec<String>, active_at_offset: i64) -> Self
The ACS visible to parties as of active_at_offset (typically the
current ledger end). The defaults beyond that are the plain
active_contracts ones: all templates, verbose (labelled) records.
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 for_templates<I, S>(self, template_ids: I) -> Result<Self>
pub fn for_templates<I, S>(self, template_ids: I) -> Result<Self>
Only contracts of these templates. Same id format and accumulation as
UpdatesRequest::for_templates.
§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 contracts implementing these interfaces (the returned created
events carry the interface views). Same id format and accumulation as
UpdatesRequest::for_interfaces.
§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 contract’s created_event_blob, for use as a disclosed
contract in later commands.
Sourcepub fn non_verbose(self) -> Self
pub fn non_verbose(self) -> Self
Omit record labels from the returned values (verbose is the default).
Trait Implementations§
Source§impl Clone for ActiveContractsRequest
impl Clone for ActiveContractsRequest
Source§fn clone(&self) -> ActiveContractsRequest
fn clone(&self) -> ActiveContractsRequest
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 ActiveContractsRequest
impl RefUnwindSafe for ActiveContractsRequest
impl Send for ActiveContractsRequest
impl Sync for ActiveContractsRequest
impl Unpin for ActiveContractsRequest
impl UnsafeUnpin for ActiveContractsRequest
impl UnwindSafe for ActiveContractsRequest
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