Skip to content

Instantly share code, notes, and snippets.

@Enigo
Created February 2, 2023 03:27
Show Gist options
  • Save Enigo/30b783edd3b7ac7d50a15247fb81a0bb to your computer and use it in GitHub Desktop.
Save Enigo/30b783edd3b7ac7d50a15247fb81a0bb to your computer and use it in GitHub Desktop.
#[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