pub struct CreateWorkspaceParams {
pub name: String,
pub description: Option<String>,
pub target: Option<String>,
pub snapshot: Option<String>,
pub git_repository: Option<GitRepository>,
pub env: Option<HashMap<String, String>>,
pub cpu: Option<u32>,
pub memory: Option<u32>,
pub disk: Option<u32>,
pub ports: Option<Vec<PortMapping>>,
pub labels: Option<HashMap<String, String>>,
pub class: Option<String>,
}Expand description
Create workspace parameters
Fields§
§name: String§description: Option<String>§target: Option<String>§snapshot: Option<String>§git_repository: Option<GitRepository>§env: Option<HashMap<String, String>>§cpu: Option<u32>§memory: Option<u32>Memory in GB (not MB) — API expects GB for workspaces
disk: Option<u32>Disk size in GB (not MB) — API expects GB for workspaces
ports: Option<Vec<PortMapping>>§labels: Option<HashMap<String, String>>§class: Option<String>Trait Implementations§
Source§impl Clone for CreateWorkspaceParams
impl Clone for CreateWorkspaceParams
Source§fn clone(&self) -> CreateWorkspaceParams
fn clone(&self) -> CreateWorkspaceParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateWorkspaceParams
impl Debug for CreateWorkspaceParams
Source§impl<'de> Deserialize<'de> for CreateWorkspaceParams
impl<'de> Deserialize<'de> for CreateWorkspaceParams
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
Auto Trait Implementations§
impl Freeze for CreateWorkspaceParams
impl RefUnwindSafe for CreateWorkspaceParams
impl Send for CreateWorkspaceParams
impl Sync for CreateWorkspaceParams
impl Unpin for CreateWorkspaceParams
impl UnwindSafe for CreateWorkspaceParams
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