ethereal_rust_sdk 0.1.5

Trading client for Ethereal exchange
Documentation
/*
 * Ethereal Exchange API
 *
 * Ethereal HTTP API for real-time trading, order management, and market data access.
 *
 * The version of the OpenAPI document: 0.1.0
 *
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReferralCodeUsageDto {
    /// The referral code
    #[serde(rename = "code")]
    pub code: String,
    /// Number of remaining times the code can be claimed
    #[serde(rename = "remainingUsage")]
    pub remaining_usage: f64,
}

impl ReferralCodeUsageDto {
    pub fn new(code: String, remaining_usage: f64) -> ReferralCodeUsageDto {
        ReferralCodeUsageDto {
            code,
            remaining_usage,
        }
    }
}