1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* 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,
}
}
}