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 AdjustIsolatedMarginRequestSignedFields {
    /// the ID of the internal datastore for the target network
    #[serde(rename = "idsId")]
    pub ids_id: String,
    /// The account address of the account for which to adjust margin
    #[serde(rename = "accountAddress")]
    pub account_address: String,
    /// The symbol of the isolated position for which to adjust margin
    #[serde(rename = "symbol")]
    pub symbol: String,
    #[serde(rename = "operation")]
    pub operation: models::AdjustMarginOperation,
    /// The quantity of margin to adjust for the isolated position
    #[serde(rename = "quantityE9")]
    pub quantity_e9: String,
    /// The random generated SALT. Should always be a number
    #[serde(rename = "salt")]
    pub salt: String,
    /// The timestamp in millis at which the request was signed
    #[serde(rename = "signedAtMillis")]
    pub signed_at_millis: i64,
}

impl AdjustIsolatedMarginRequestSignedFields {
    pub fn new(ids_id: String, account_address: String, symbol: String, operation: models::AdjustMarginOperation, quantity_e9: String, salt: String, signed_at_millis: i64) -> AdjustIsolatedMarginRequestSignedFields {
        AdjustIsolatedMarginRequestSignedFields {
            ids_id,
            account_address,
            symbol,
            operation,
            quantity_e9,
            salt,
            signed_at_millis,
        }
    }
}