#[non_exhaustive]pub struct NodeSelector {
pub accelerator: String,
/* private fields */
}Expand description
Hardware constraints configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.accelerator: StringRequired. GPU accelerator type to attach to an instance.
Implementations§
Source§impl NodeSelector
impl NodeSelector
Trait Implementations§
Source§impl Clone for NodeSelector
impl Clone for NodeSelector
Source§fn clone(&self) -> NodeSelector
fn clone(&self) -> NodeSelector
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 NodeSelector
impl Debug for NodeSelector
Source§impl Default for NodeSelector
impl Default for NodeSelector
Source§fn default() -> NodeSelector
fn default() -> NodeSelector
Returns the “default value” for a type. Read more
Source§impl Message for NodeSelector
impl Message for NodeSelector
Source§impl PartialEq for NodeSelector
impl PartialEq for NodeSelector
impl StructuralPartialEq for NodeSelector
Auto Trait Implementations§
impl Freeze for NodeSelector
impl RefUnwindSafe for NodeSelector
impl Send for NodeSelector
impl Sync for NodeSelector
impl Unpin for NodeSelector
impl UnwindSafe for NodeSelector
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