pub struct Project {
pub cors_admin: Option<Box<ProjectCors>>,
pub cors_public: Option<Box<ProjectCors>>,
pub environment: EnvironmentEnum,
pub home_region: HomeRegionEnum,
pub id: String,
pub name: String,
pub organizations: Vec<BasicOrganization>,
pub revision_id: String,
pub services: Box<ProjectServices>,
pub slug: String,
pub state: StateEnum,
pub workspace_id: Option<Option<String>>,
}Fields§
§cors_admin: Option<Box<ProjectCors>>§cors_public: Option<Box<ProjectCors>>§environment: EnvironmentEnumThe environment of the project. prod Production stage Staging dev Development
home_region: HomeRegionEnumThe project home region. This is used to set where the project data is stored and where the project’s endpoints are located. eu-central EUCentral asia-northeast AsiaNorthEast us-east USEast us-west USWest us US global Global
id: StringThe project’s ID.
name: StringThe name of the project.
organizations: Vec<BasicOrganization>The organizations of the project. Organizations are used to group users and enforce certain restrictions like usage of SSO.
revision_id: StringThe configuration revision ID.
services: Box<ProjectServices>§slug: StringThe project’s slug
state: StateEnumThe state of the project. running Running halted Halted deleted Deleted
workspace_id: Option<Option<String>>Implementations§
Source§impl Project
impl Project
pub fn new( environment: EnvironmentEnum, home_region: HomeRegionEnum, id: String, name: String, organizations: Vec<BasicOrganization>, revision_id: String, services: ProjectServices, slug: String, state: StateEnum, ) -> Project
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Project
impl<'de> Deserialize<'de> for Project
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Project
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnwindSafe for Project
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more