pub struct RedPacketsPage {
pub end_cursor: String,
pub has_next_page: bool,
pub records: Vec<RedPacketDto>,
pub start_cursor: String,
pub total: i64,
}Expand description
RedPacketsPage
JSON schema
{
"type": "object",
"required": [
"endCursor",
"hasNextPage",
"records",
"startCursor",
"total"
],
"properties": {
"endCursor": {
"description": "DTO.PAGE.END_CURSOR",
"examples": [
"cursor_456"
],
"type": "string"
},
"hasNextPage": {
"description": "DTO.PAGE.HAS_NEXT",
"examples": [
true
],
"type": "boolean"
},
"records": {
"description": "Array of red packets",
"type": "array",
"items": {
"$ref": "#/components/schemas/RedPacketDTO"
}
},
"startCursor": {
"description": "DTO.PAGE.START_CURSOR",
"examples": [
"cursor_123"
],
"type": "string"
},
"total": {
"description": "DTO.PAGE.TOTAL",
"examples": [
100
],
"type": "integer",
"format": "int64"
}
}
}Fields§
§end_cursor: StringDTO.PAGE.END_CURSOR
has_next_page: boolDTO.PAGE.HAS_NEXT
records: Vec<RedPacketDto>Array of red packets
start_cursor: StringDTO.PAGE.START_CURSOR
total: i64DTO.PAGE.TOTAL
Implementations§
Source§impl RedPacketsPage
impl RedPacketsPage
pub fn builder() -> RedPacketsPage
Trait Implementations§
Source§impl Clone for RedPacketsPage
impl Clone for RedPacketsPage
Source§fn clone(&self) -> RedPacketsPage
fn clone(&self) -> RedPacketsPage
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 RedPacketsPage
impl Debug for RedPacketsPage
Source§impl<'de> Deserialize<'de> for RedPacketsPage
impl<'de> Deserialize<'de> for RedPacketsPage
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<&RedPacketsPage> for RedPacketsPage
impl From<&RedPacketsPage> for RedPacketsPage
Source§fn from(value: &RedPacketsPage) -> Self
fn from(value: &RedPacketsPage) -> Self
Converts to this type from the input type.
Source§impl From<RedPacketsPage> for RedPacketsPage
impl From<RedPacketsPage> for RedPacketsPage
Source§fn from(value: RedPacketsPage) -> Self
fn from(value: RedPacketsPage) -> Self
Converts to this type from the input type.
Source§impl Serialize for RedPacketsPage
impl Serialize for RedPacketsPage
Source§impl TryFrom<RedPacketsPage> for RedPacketsPage
impl TryFrom<RedPacketsPage> for RedPacketsPage
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: RedPacketsPage) -> Result<Self, ConversionError>
fn try_from(value: RedPacketsPage) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RedPacketsPage
impl RefUnwindSafe for RedPacketsPage
impl Send for RedPacketsPage
impl Sync for RedPacketsPage
impl Unpin for RedPacketsPage
impl UnwindSafe for RedPacketsPage
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