use serde::{Serialize, Deserialize};
use crate::data_model::{links::Links};
#[derive(Serialize, Deserialize, Debug)]
pub struct OrgStruct{
#[serde(rename = "createdAt")]
pub created_at: String,
pub description: Option<String>,
pub id: String,
pub links: OrgLinks,
pub name: String,
pub status: Option<String>,
#[serde(rename = "updatedAt")]
pub updated_at: Option<String>,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct OrgLinks{
pub buckets: String,
pub dashboards: String,
pub labels: String,
pub members: String,
pub owners: String,
pub secrets: String,
#[serde(rename = "self")]
pub org_self: String,
pub tasks: String,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct Orgs {
pub links: Links,
pub orgs: Vec<OrgStruct>,
}