pub struct ContainerCreateParams {
pub name: String,
pub expires_after: Option<ExpiresAfter>,
pub file_ids: Option<Value>,
pub memory_limit: Option<ContainerCreateParamsMemoryLimit>,
pub network_policy: Option<NetworkPolicy>,
pub skills: Option<Vec<Skill>>,
}Fields§
§name: StringName of the container to create.
expires_after: Option<ExpiresAfter>Container expiration time in seconds relative to the ‘anchor’ time.
file_ids: Option<Value>IDs of files to copy to the container.
memory_limit: Option<ContainerCreateParamsMemoryLimit>Optional memory limit for the container. Defaults to “1g”.
network_policy: Option<NetworkPolicy>Network access policy for the container.
skills: Option<Vec<Skill>>An optional list of skills referenced by id or inline data.
Trait Implementations§
Source§impl Clone for ContainerCreateParams
impl Clone for ContainerCreateParams
Source§fn clone(&self) -> ContainerCreateParams
fn clone(&self) -> ContainerCreateParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContainerCreateParams
impl Debug for ContainerCreateParams
Source§impl<'de> Deserialize<'de> for ContainerCreateParams
impl<'de> Deserialize<'de> for ContainerCreateParams
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 ContainerCreateParams
impl RefUnwindSafe for ContainerCreateParams
impl Send for ContainerCreateParams
impl Sync for ContainerCreateParams
impl Unpin for ContainerCreateParams
impl UnsafeUnpin for ContainerCreateParams
impl UnwindSafe for ContainerCreateParams
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