algonaut_indexer 0.7.0

Algorand ledger analytics API.
Documentation
/*
 * Indexer
 *
 * Algorand ledger analytics API.
 *
 * The version of the OpenAPI document: 2.0
 *
 * Generated by: https://openapi-generator.tech
 */

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct LookupAccountCreatedAssets200Response {
    #[serde(rename = "assets")]
    pub assets: Vec<crate::models::Asset>,
    /// Round at which the results were computed.
    #[serde(rename = "current-round")]
    pub current_round: u64,
    /// Used for pagination, when making another request provide this token with the next parameter.
    #[serde(rename = "next-token", skip_serializing_if = "Option::is_none")]
    pub next_token: Option<String>,
}

impl LookupAccountCreatedAssets200Response {
    pub fn new(
        assets: Vec<crate::models::Asset>,
        current_round: u64,
    ) -> LookupAccountCreatedAssets200Response {
        LookupAccountCreatedAssets200Response {
            assets,
            current_round,
            next_token: None,
        }
    }
}