/*
* Firefly III API v6.4.14
*
* This is the documentation of the Firefly III API. Please report any bugs or issues. You may use the \"Authorize\" button to try the API below. <br><br> Please keep in mind that the demo site does **not** accept requests from `curl`, `colly`, `wget`, etc. You must use a browser or a tool like Insomnia to make your test requests. <br><br> To learn more about the idiosyncrasies of this API, please read about the API in the [Firefly III API documentation](https://docs.firefly-iii.org/references/firefly-iii/api/). <br><br> <small>This file was last generated on 2025-12-26 @ 15:17:41 (Europe/Amsterdam)</small>
*
* The version of the OpenAPI document: v6.4.14
* Contact: james@firefly-iii.org
* Generated by: https://openapi-generator.tech
*/
#![allow(unused_imports)]
use crate::models::{self, *};
use std::fmt;
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct UserGroupReadAttributes {
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
pub created_at: Option<String>,
#[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
pub updated_at: Option<String>,
/// Is this user group ('financial administration') currently the active administration?
#[serde(rename = "in_use", skip_serializing_if = "Option::is_none")]
pub in_use: Option<bool>,
/// Can the current user see the members of this user group?
#[serde(rename = "can_see_members", skip_serializing_if = "Option::is_none")]
pub can_see_members: Option<bool>,
/// Title of the user group. By default, it is the same as the user's email address.
#[serde(rename = "title", skip_serializing_if = "Option::is_none")]
pub title: Option<String>,
/// Returns the primary currency ID of the user group.
#[serde(
rename = "primary_currency_id",
skip_serializing_if = "Option::is_none"
)]
pub primary_currency_id: Option<String>,
/// Returns the primary currency code of the user group.
#[serde(
rename = "primary_currency_code",
skip_serializing_if = "Option::is_none"
)]
pub primary_currency_code: Option<String>,
/// Returns the primary currency symbol of the user group.
#[serde(
rename = "primary_currency_symbol",
skip_serializing_if = "Option::is_none"
)]
pub primary_currency_symbol: Option<String>,
/// Returns the primary currency decimal places of the user group.
#[serde(
rename = "primary_currency_decimal_places",
skip_serializing_if = "Option::is_none"
)]
pub primary_currency_decimal_places: Option<i32>,
#[serde(rename = "members", skip_serializing_if = "Option::is_none")]
pub members: Option<Vec<models::UserGroupReadMembers>>,
}
impl UserGroupReadAttributes {
pub fn new() -> UserGroupReadAttributes {
UserGroupReadAttributes {
created_at: None,
updated_at: None,
in_use: None,
can_see_members: None,
title: None,
primary_currency_id: None,
primary_currency_code: None,
primary_currency_symbol: None,
primary_currency_decimal_places: None,
members: None,
}
}
}
impl fmt::Display for UserGroupReadAttributes {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match serde_json::to_string(self) {
Ok(json) => write!(f, "{}", json),
Err(_) => write!(f, "{{{{}}}}"),
}
}
}