bluefin_api 1.7.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};

/// LoginRequest : User is expected to sign this payload and sends is signature in login api as header and payload itself in request body 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct LoginRequest {
    /// The address of the account.
    #[serde(rename = "accountAddress")]
    pub account_address: String,
    /// The timestamp in millis when the login was signed.
    #[serde(rename = "signedAtMillis")]
    pub signed_at_millis: i64,
    /// The intended audience of the login request.
    #[serde(rename = "audience")]
    pub audience: String,
}

impl LoginRequest {
    /// User is expected to sign this payload and sends is signature in login api as header and payload itself in request body 
    pub fn new(account_address: String, signed_at_millis: i64, audience: String) -> LoginRequest {
        LoginRequest {
            account_address,
            signed_at_millis,
            audience,
        }
    }
}