pub struct ContainerProfile {
pub image: String,
pub cpus: f64,
pub memory_mb: u32,
pub network: bool,
}Expand description
Runs the bot’s shell commands in a throwaway Docker container with these quotas.
Fields§
§image: String§cpus: f64§memory_mb: u32§network: boolImplementations§
Trait Implementations§
Source§impl Clone for ContainerProfile
impl Clone for ContainerProfile
Source§impl Debug for ContainerProfile
impl Debug for ContainerProfile
Source§impl<'de> Deserialize<'de> for ContainerProfile
impl<'de> Deserialize<'de> for ContainerProfile
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 PartialEq for ContainerProfile
impl PartialEq for ContainerProfile
Source§impl Serialize for ContainerProfile
impl Serialize for ContainerProfile
impl StructuralPartialEq for ContainerProfile
Auto Trait Implementations§
impl Freeze for ContainerProfile
impl RefUnwindSafe for ContainerProfile
impl Send for ContainerProfile
impl Sync for ContainerProfile
impl Unpin for ContainerProfile
impl UnsafeUnpin for ContainerProfile
impl UnwindSafe for ContainerProfile
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