bluefin_api 1.7.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 SigPayload {
    /// Target address for the claim.
    #[serde(rename = "target")]
    pub target: String,
    /// Receiver address for the claim.
    #[serde(rename = "receiver")]
    pub receiver: String,
    /// Amount to be claimed.
    #[serde(rename = "amount")]
    pub amount: String,
    /// Expiry timestamp for the claim.
    #[serde(rename = "expiry")]
    pub expiry: String,
    /// Nonce for the claim.
    #[serde(rename = "nonce")]
    pub nonce: String,
    /// Type identifier for the claim.
    #[serde(rename = "type")]
    pub r#type: i32,
}

impl SigPayload {
    pub fn new(target: String, receiver: String, amount: String, expiry: String, nonce: String, r#type: i32) -> SigPayload {
        SigPayload {
            target,
            receiver,
            amount,
            expiry,
            nonce,
            r#type,
        }
    }
}