pub struct IcCanisterPageRequest {
pub source_endpoint: String,
pub now_unix_secs: u64,
pub filters: IcCanisterFilters,
pub limit: u16,
pub after: Option<String>,
pub before: Option<String>,
}Expand description
IcCanisterPageRequest
Request for one bounded official Dashboard canister page.
Fields§
§source_endpoint: StringDashboard API v4 base endpoint.
now_unix_secs: u64Collection time as Unix seconds.
filters: IcCanisterFiltersFilters applied by the Dashboard.
limit: u16Maximum rows requested from the API.
after: Option<String>Exclusive forward cursor returned by an earlier page.
before: Option<String>Exclusive backward cursor returned by an earlier page.
Implementations§
Source§impl IcCanisterPageRequest
impl IcCanisterPageRequest
Sourcepub fn new(source_endpoint: impl Into<String>, now_unix_secs: u64) -> Self
pub fn new(source_endpoint: impl Into<String>, now_unix_secs: u64) -> Self
Construct a live Dashboard page request with the default bounded limit.
Sourcepub fn with_filters(self, filters: IcCanisterFilters) -> Self
pub fn with_filters(self, filters: IcCanisterFilters) -> Self
Set the Dashboard filters used by this request.
Sourcepub const fn with_limit(self, limit: u16) -> Self
pub const fn with_limit(self, limit: u16) -> Self
Set the maximum number of returned rows.
Sourcepub fn with_after(self, after: impl Into<String>) -> Self
pub fn with_after(self, after: impl Into<String>) -> Self
Set an exclusive forward cursor.
Sourcepub fn with_before(self, before: impl Into<String>) -> Self
pub fn with_before(self, before: impl Into<String>) -> Self
Set an exclusive backward cursor.
Trait Implementations§
Source§impl Clone for IcCanisterPageRequest
impl Clone for IcCanisterPageRequest
Source§fn clone(&self) -> IcCanisterPageRequest
fn clone(&self) -> IcCanisterPageRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IcCanisterPageRequest
impl Debug for IcCanisterPageRequest
impl Eq for IcCanisterPageRequest
Source§impl PartialEq for IcCanisterPageRequest
impl PartialEq for IcCanisterPageRequest
impl StructuralPartialEq for IcCanisterPageRequest
Auto Trait Implementations§
impl Freeze for IcCanisterPageRequest
impl RefUnwindSafe for IcCanisterPageRequest
impl Send for IcCanisterPageRequest
impl Sync for IcCanisterPageRequest
impl Unpin for IcCanisterPageRequest
impl UnsafeUnpin for IcCanisterPageRequest
impl UnwindSafe for IcCanisterPageRequest
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
Mutably borrows from an owned value. Read more