codexsdk 1.0.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * moon-vault-api
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SellQuote {
    #[serde(rename = "recommendations")]
    pub recommendations: Vec<String>,
    #[serde(rename = "quoteId")]
    pub quote_id: String,
    #[serde(rename = "paymentMethod")]
    pub payment_method: String,
    #[serde(rename = "ramp")]
    pub ramp: String,
    #[serde(rename = "payout")]
    pub payout: f64,
    #[serde(rename = "transactionFee")]
    pub transaction_fee: f64,
    #[serde(rename = "networkFee")]
    pub network_fee: f64,
    #[serde(rename = "rate")]
    pub rate: f64,
}

impl SellQuote {
    pub fn new(recommendations: Vec<String>, quote_id: String, payment_method: String, ramp: String, payout: f64, transaction_fee: f64, network_fee: f64, rate: f64) -> SellQuote {
        SellQuote {
            recommendations,
            quote_id,
            payment_method,
            ramp,
            payout,
            transaction_fee,
            network_fee,
            rate,
        }
    }
}