#[non_exhaustive]pub struct ContainerMetaPage {
pub cursor: Option<String>,
pub limit: Option<i32>,
pub next_cursor: Option<String>,
pub prev_cursor: Option<Option<String>>,
pub total: Option<i64>,
pub type_: Option<ContainerMetaPageType>,
/* private fields */
}
Expand description
Paging attributes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.cursor: Option<String>
The cursor used to get the current results, if any.
limit: Option<i32>
Number of results returned
next_cursor: Option<String>
The cursor used to get the next results, if any.
prev_cursor: Option<Option<String>>
The cursor used to get the previous results, if any.
total: Option<i64>
Total number of records that match the query.
type_: Option<ContainerMetaPageType>
Type of Container pagination.
Implementations§
source§impl ContainerMetaPage
impl ContainerMetaPage
pub fn new() -> ContainerMetaPage
pub fn cursor(self, value: String) -> Self
pub fn limit(self, value: i32) -> Self
pub fn next_cursor(self, value: String) -> Self
pub fn prev_cursor(self, value: Option<String>) -> Self
pub fn total(self, value: i64) -> Self
pub fn type_(self, value: ContainerMetaPageType) -> Self
Trait Implementations§
source§impl Clone for ContainerMetaPage
impl Clone for ContainerMetaPage
source§fn clone(&self) -> ContainerMetaPage
fn clone(&self) -> ContainerMetaPage
Returns a copy of the value. Read more
1.0.0 · 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 ContainerMetaPage
impl Debug for ContainerMetaPage
source§impl Default for ContainerMetaPage
impl Default for ContainerMetaPage
source§impl<'de> Deserialize<'de> for ContainerMetaPage
impl<'de> Deserialize<'de> for ContainerMetaPage
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ContainerMetaPage
impl PartialEq for ContainerMetaPage
source§fn eq(&self, other: &ContainerMetaPage) -> bool
fn eq(&self, other: &ContainerMetaPage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ContainerMetaPage
impl Serialize for ContainerMetaPage
impl StructuralPartialEq for ContainerMetaPage
Auto Trait Implementations§
impl Freeze for ContainerMetaPage
impl RefUnwindSafe for ContainerMetaPage
impl Send for ContainerMetaPage
impl Sync for ContainerMetaPage
impl Unpin for ContainerMetaPage
impl UnwindSafe for ContainerMetaPage
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)