pub struct RedPacketClaimsPage {
pub end_cursor: Option<String>,
pub has_next_page: bool,
pub records: Vec<RedPacketClaim>,
pub start_cursor: Option<String>,
pub total: i64,
}Expand description
Paginated red packet claims response
JSON schema
{
"description": "Paginated red packet claims response",
"type": "object",
"required": [
"hasNextPage",
"records",
"total"
],
"properties": {
"endCursor": {
"description": "Cursor for the end of current page",
"type": "string"
},
"hasNextPage": {
"description": "Whether there is a next page",
"type": "boolean"
},
"records": {
"description": "List of red packet claims",
"type": "array",
"items": {
"$ref": "#/components/schemas/RedPacketClaim"
}
},
"startCursor": {
"description": "Cursor for the start of current page",
"type": "string"
},
"total": {
"description": "Total number of claims",
"type": "integer",
"format": "int64"
}
}
}Fields§
§end_cursor: Option<String>Cursor for the end of current page
has_next_page: boolWhether there is a next page
records: Vec<RedPacketClaim>List of red packet claims
start_cursor: Option<String>Cursor for the start of current page
total: i64Total number of claims
Implementations§
Source§impl RedPacketClaimsPage
impl RedPacketClaimsPage
pub fn builder() -> RedPacketClaimsPage
Trait Implementations§
Source§impl Clone for RedPacketClaimsPage
impl Clone for RedPacketClaimsPage
Source§fn clone(&self) -> RedPacketClaimsPage
fn clone(&self) -> RedPacketClaimsPage
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 RedPacketClaimsPage
impl Debug for RedPacketClaimsPage
Source§impl<'de> Deserialize<'de> for RedPacketClaimsPage
impl<'de> Deserialize<'de> for RedPacketClaimsPage
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 From<&RedPacketClaimsPage> for RedPacketClaimsPage
impl From<&RedPacketClaimsPage> for RedPacketClaimsPage
Source§fn from(value: &RedPacketClaimsPage) -> Self
fn from(value: &RedPacketClaimsPage) -> Self
Converts to this type from the input type.
Source§impl From<RedPacketClaimsPage> for RedPacketClaimsPage
impl From<RedPacketClaimsPage> for RedPacketClaimsPage
Source§fn from(value: RedPacketClaimsPage) -> Self
fn from(value: RedPacketClaimsPage) -> Self
Converts to this type from the input type.
Source§impl Serialize for RedPacketClaimsPage
impl Serialize for RedPacketClaimsPage
Source§impl TryFrom<RedPacketClaimsPage> for RedPacketClaimsPage
impl TryFrom<RedPacketClaimsPage> for RedPacketClaimsPage
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: RedPacketClaimsPage) -> Result<Self, ConversionError>
fn try_from(value: RedPacketClaimsPage) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RedPacketClaimsPage
impl RefUnwindSafe for RedPacketClaimsPage
impl Send for RedPacketClaimsPage
impl Sync for RedPacketClaimsPage
impl Unpin for RedPacketClaimsPage
impl UnsafeUnpin for RedPacketClaimsPage
impl UnwindSafe for RedPacketClaimsPage
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