pub enum ApiHttpPaginationConfigDef {
Offset {
limit_param: Option<String>,
offset_param: Option<String>,
page_size: u64,
},
Cursor {
cursor_param: Option<String>,
cursor_path: String,
page_size: u64,
},
}Expand description
ApiHttpPaginationConfigDef
JSON schema
{
"oneOf": [
{
"type": "object",
"required": [
"page_size",
"type"
],
"properties": {
"limit_param": {
"type": [
"string",
"null"
]
},
"offset_param": {
"type": [
"string",
"null"
]
},
"page_size": {
"type": "integer",
"minimum": 0.0
},
"type": {
"type": "string",
"enum": [
"offset"
]
}
}
},
{
"type": "object",
"required": [
"cursor_path",
"page_size",
"type"
],
"properties": {
"cursor_param": {
"type": [
"string",
"null"
]
},
"cursor_path": {
"type": "string"
},
"page_size": {
"type": "integer",
"minimum": 0.0
},
"type": {
"type": "string",
"enum": [
"cursor"
]
}
}
}
]
}Variants§
Trait Implementations§
Source§impl Clone for ApiHttpPaginationConfigDef
impl Clone for ApiHttpPaginationConfigDef
Source§fn clone(&self) -> ApiHttpPaginationConfigDef
fn clone(&self) -> ApiHttpPaginationConfigDef
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 ApiHttpPaginationConfigDef
impl Debug for ApiHttpPaginationConfigDef
Source§impl<'de> Deserialize<'de> for ApiHttpPaginationConfigDef
impl<'de> Deserialize<'de> for ApiHttpPaginationConfigDef
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
Auto Trait Implementations§
impl Freeze for ApiHttpPaginationConfigDef
impl RefUnwindSafe for ApiHttpPaginationConfigDef
impl Send for ApiHttpPaginationConfigDef
impl Sync for ApiHttpPaginationConfigDef
impl Unpin for ApiHttpPaginationConfigDef
impl UnsafeUnpin for ApiHttpPaginationConfigDef
impl UnwindSafe for ApiHttpPaginationConfigDef
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