thehive_client/models/
output_user_organisation.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct OutputUserOrganisation {
16 #[serde(rename = "organisation")]
17 pub organisation: String,
18 #[serde(rename = "profile")]
19 pub profile: String,
20 #[serde(rename = "default")]
21 pub default: bool,
22}
23
24impl OutputUserOrganisation {
25 pub fn new(organisation: String, profile: String, default: bool) -> OutputUserOrganisation {
26 OutputUserOrganisation {
27 organisation,
28 profile,
29 default,
30 }
31 }
32}
33