btcpay-client 0.1.0

A client library for BTCPay Server.
Documentation
/*
 * BTCPay Greenfield API
 *
 * A full API to use your BTCPay Server
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */




#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct QuoteResultData {
    /// The asset to trade.
    #[serde(rename = "fromAsset", skip_serializing_if = "Option::is_none")]
    pub from_asset: Option<String>,
    /// The asset you want.
    #[serde(rename = "toAsset", skip_serializing_if = "Option::is_none")]
    pub to_asset: Option<String>,
    /// The bid price.
    #[serde(rename = "bid", skip_serializing_if = "Option::is_none")]
    pub bid: Option<f32>,
    /// The ask price
    #[serde(rename = "ask", skip_serializing_if = "Option::is_none")]
    pub ask: Option<f32>,
}

impl QuoteResultData {
    pub fn new() -> QuoteResultData {
        QuoteResultData {
            from_asset: None,
            to_asset: None,
            bid: None,
            ask: None,
        }
    }
}