1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
/*
* Ory APIs
*
* Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
*
* The version of the OpenAPI document: v1.1.38
* Contact: support@ory.sh
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Project {
/// The project's ID.
#[serde(rename = "id")]
pub id: String,
/// The name of the project.
#[serde(rename = "name")]
pub name: String,
/// The configuration revision ID.
#[serde(rename = "revision_id")]
pub revision_id: String,
#[serde(rename = "services")]
pub services: Box<crate::models::ProjectServices>,
/// The project's slug
#[serde(rename = "slug")]
pub slug: String,
/// The state of the project. running Running halted Halted deleted Deleted
#[serde(rename = "state")]
pub state: StateEnum,
}
impl Project {
pub fn new(id: String, name: String, revision_id: String, services: crate::models::ProjectServices, slug: String, state: StateEnum) -> Project {
Project {
id,
name,
revision_id,
services: Box::new(services),
slug,
state,
}
}
}
/// The state of the project. running Running halted Halted deleted Deleted
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum StateEnum {
#[serde(rename = "running")]
Running,
#[serde(rename = "halted")]
Halted,
#[serde(rename = "deleted")]
Deleted,
}