pub struct ContainerGpuSpec {
pub gpu_type: String,
pub count: u32,
}Expand description
GPU specification for a container.
Fields§
§gpu_type: StringGPU type identifier (e.g., “nvidia-a100”, “nvidia-t4”)
count: u32Number of GPUs required (1-8)
Trait Implementations§
Source§impl Clone for ContainerGpuSpec
impl Clone for ContainerGpuSpec
Source§fn clone(&self) -> ContainerGpuSpec
fn clone(&self) -> ContainerGpuSpec
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 ContainerGpuSpec
impl Debug for ContainerGpuSpec
Source§impl<'de> Deserialize<'de> for ContainerGpuSpec
impl<'de> Deserialize<'de> for ContainerGpuSpec
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 ContainerGpuSpec
impl PartialEq for ContainerGpuSpec
Source§impl Serialize for ContainerGpuSpec
impl Serialize for ContainerGpuSpec
impl Eq for ContainerGpuSpec
impl StructuralPartialEq for ContainerGpuSpec
Auto Trait Implementations§
impl Freeze for ContainerGpuSpec
impl RefUnwindSafe for ContainerGpuSpec
impl Send for ContainerGpuSpec
impl Sync for ContainerGpuSpec
impl Unpin for ContainerGpuSpec
impl UnsafeUnpin for ContainerGpuSpec
impl UnwindSafe for ContainerGpuSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.