bluefin_api 1.8.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 AccountGroupIdPatch {
    /// The address of the account to update.
    #[serde(rename = "accountAddress")]
    pub account_address: String,
    /// The new group to assign the account to. If not set, the account will be removed from it's group. 
    #[serde(rename = "groupId", skip_serializing_if = "Option::is_none")]
    pub group_id: Option<String>,
}

impl AccountGroupIdPatch {
    pub fn new(account_address: String) -> AccountGroupIdPatch {
        AccountGroupIdPatch {
            account_address,
            group_id: None,
        }
    }
}