pub enum ApiHttpPaginationConfig {
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
ApiHttpPaginationConfig
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 ApiHttpPaginationConfig
impl Clone for ApiHttpPaginationConfig
Source§fn clone(&self) -> ApiHttpPaginationConfig
fn clone(&self) -> ApiHttpPaginationConfig
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 ApiHttpPaginationConfig
impl Debug for ApiHttpPaginationConfig
Source§impl<'de> Deserialize<'de> for ApiHttpPaginationConfig
impl<'de> Deserialize<'de> for ApiHttpPaginationConfig
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 ApiHttpPaginationConfig
impl RefUnwindSafe for ApiHttpPaginationConfig
impl Send for ApiHttpPaginationConfig
impl Sync for ApiHttpPaginationConfig
impl Unpin for ApiHttpPaginationConfig
impl UnsafeUnpin for ApiHttpPaginationConfig
impl UnwindSafe for ApiHttpPaginationConfig
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