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};
/// AccountCommandFailureUpdate : Details about a failure during an account command execution.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AccountCommandFailureUpdate {
/// The reason for the failure.
#[serde(rename = "reason")]
pub reason: String,
/// The type of command that failed.
#[serde(rename = "failedCommandType")]
pub failed_command_type: String,
/// The timestamp when the command failed in milliseconds.
#[serde(rename = "failedAtMillis")]
pub failed_at_millis: u64,
}
impl AccountCommandFailureUpdate {
/// Details about a failure during an account command execution.
pub fn new(reason: String, failed_command_type: String, failed_at_millis: u64) -> AccountCommandFailureUpdate {
AccountCommandFailureUpdate {
reason,
failed_command_type,
failed_at_millis,
}
}
}