bluefin_api 1.13.0

Bluefin API
Documentation
/*
 * Bluefin API
 *
 * Bluefin API
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AuthorizedWallet {
    /// The address of the authorized wallet.
    #[serde(rename = "address")]
    pub address: String,
    /// The alias of the authorized wallet.
    #[serde(rename = "alias", skip_serializing_if = "Option::is_none")]
    pub alias: Option<String>,
    /// The timestamp in milliseconds when the wallet was authorized.
    #[serde(rename = "authorizedAtMillis")]
    pub authorized_at_millis: i64,
}

impl AuthorizedWallet {
    pub fn new(address: String, authorized_at_millis: i64) -> AuthorizedWallet {
        AuthorizedWallet {
            address,
            alias: None,
            authorized_at_millis,
        }
    }
}