Created
February 2, 2023 03:27
-
-
Save Enigo/30b783edd3b7ac7d50a15247fb81a0bb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[derive(Deserialize, Debug)] | |
pub struct Mint { | |
pub result: Vec<TheResult>, | |
pub cursor: String, | |
} | |
impl PaginatedApi for Mint { | |
fn get_cursor(&self) -> String { | |
self.cursor.clone() | |
} | |
fn has_results(&self) -> bool { | |
!self.result.is_empty() | |
} | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment