lighter-rust 0.2.0

A comprehensive Rust SDK for the Lighter trading platform with async/await, WebSocket support, and Ethereum wallet integration
/*
 *
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document:
 *
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RespSendTxBatch {
    #[serde(rename = "code")]
    pub code: i32,
    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
    #[serde(rename = "tx_hash")]
    pub tx_hash: Vec<String>,
    #[serde(rename = "predicted_execution_time_ms")]
    pub predicted_execution_time_ms: i64,
}

impl RespSendTxBatch {
    pub fn new(
        code: i32,
        tx_hash: Vec<String>,
        predicted_execution_time_ms: i64,
    ) -> RespSendTxBatch {
        RespSendTxBatch {
            code,
            message: None,
            tx_hash,
            predicted_execution_time_ms,
        }
    }
}