#[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>,
pub additional_properties: BTreeMap<String, Value>,
/* 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.
additional_properties: BTreeMap<String, Value>
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
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for ContainerMetaPage
impl Clone for ContainerMetaPage
Source§fn clone(&self) -> ContainerMetaPage
fn clone(&self) -> ContainerMetaPage
Returns a duplicate 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§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