pub struct CreateEnvironmentRequest {
pub name: String,
pub project_id: Option<String>,
pub description: Option<String>,
}Expand description
Body for POST /api/v1/environments.
Fields§
§name: StringDisplay name. Must be unique within the chosen project_id namespace.
project_id: Option<String>Owning project id. None = global environment.
description: Option<String>Free-form description shown in the UI.
Trait Implementations§
Source§impl ComposeSchema for CreateEnvironmentRequest
impl ComposeSchema for CreateEnvironmentRequest
Source§impl Debug for CreateEnvironmentRequest
impl Debug for CreateEnvironmentRequest
Source§impl<'de> Deserialize<'de> for CreateEnvironmentRequest
impl<'de> Deserialize<'de> for CreateEnvironmentRequest
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
Source§impl Serialize for CreateEnvironmentRequest
impl Serialize for CreateEnvironmentRequest
Auto Trait Implementations§
impl Freeze for CreateEnvironmentRequest
impl RefUnwindSafe for CreateEnvironmentRequest
impl Send for CreateEnvironmentRequest
impl Sync for CreateEnvironmentRequest
impl Unpin for CreateEnvironmentRequest
impl UnsafeUnpin for CreateEnvironmentRequest
impl UnwindSafe for CreateEnvironmentRequest
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