pub struct SnapshotRequest { /* private fields */ }Expand description
Which snapshot of the active contracts to read, and which part of it.
Scan takes a snapshot every few hours.
ScanClient::acs_snapshot_timestamp gives the record time of the one
before a moment; at_or_before lets Scan find it
instead.
Implementations§
Source§impl SnapshotRequest
impl SnapshotRequest
Sourcepub fn at(migration_id: i64, record_time: impl Into<String>) -> Self
pub fn at(migration_id: i64, record_time: impl Into<String>) -> Self
The snapshot taken at exactly record_time in migration_id.
Sourcepub fn at_or_before(self) -> Self
pub fn at_or_before(self) -> Self
Take the most recent snapshot at or before the record time, where the default is to require one at exactly that time.
Sourcepub fn with_page_size(self, page_size: u32) -> Self
pub fn with_page_size(self, page_size: u32) -> Self
How many contracts a page holds. Defaults to 100; Scan allows 1000.
Sourcepub fn after(self, next_page_token: impl Into<String>) -> Self
pub fn after(self, next_page_token: impl Into<String>) -> Self
Read the page after the one that returned this token.
Sourcepub fn for_parties<I, S>(self, parties: I) -> Self
pub fn for_parties<I, S>(self, parties: I) -> Self
Only contracts these parties are stakeholders of. For the holdings reads these are the owners, and at least one is required.
Sourcepub fn for_templates<I, S>(self, templates: I) -> Self
pub fn for_templates<I, S>(self, templates: I) -> Self
Only contracts of these templates, each as
<package name>:<Module>:<Entity>. Ignored by the holdings reads.
Trait Implementations§
Source§impl Clone for SnapshotRequest
impl Clone for SnapshotRequest
Auto Trait Implementations§
impl Forget for SnapshotRequest
impl Freeze for SnapshotRequest
impl Move for SnapshotRequest
impl RefUnwindSafe for SnapshotRequest
impl Send for SnapshotRequestwhere
RawVecInner: Send,
impl Sync for SnapshotRequestwhere
RawVecInner: Sync,
impl Unpin for SnapshotRequest
impl UnsafeUnpin for SnapshotRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for SnapshotRequestwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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::Request