Struct docker_api_stubs::models::DeviceRequest
source · [−]pub struct DeviceRequest {
pub capabilities: Option<Vec<Vec<String>>>,
pub count: Option<isize>,
pub device_i_ds: Option<Vec<String>>,
pub driver: Option<String>,
pub options: Option<HashMap<String, String>>,
}
Expand description
A request for devices to be sent to device drivers
Fields
capabilities: Option<Vec<Vec<String>>>
A list of capabilities; an OR list of AND lists of capabilities.
count: Option<isize>
device_i_ds: Option<Vec<String>>
driver: Option<String>
options: Option<HashMap<String, String>>
Driver-specific options, specified as a key/value pairs. These options are passed directly to the driver.
Trait Implementations
sourceimpl Clone for DeviceRequest
impl Clone for DeviceRequest
sourcefn clone(&self) -> DeviceRequest
fn clone(&self) -> DeviceRequest
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DeviceRequest
impl Debug for DeviceRequest
sourceimpl<'de> Deserialize<'de> for DeviceRequest
impl<'de> Deserialize<'de> for DeviceRequest
sourcefn 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
sourceimpl PartialEq<DeviceRequest> for DeviceRequest
impl PartialEq<DeviceRequest> for DeviceRequest
sourcefn eq(&self, other: &DeviceRequest) -> bool
fn eq(&self, other: &DeviceRequest) -> bool
sourceimpl Serialize for DeviceRequest
impl Serialize for DeviceRequest
impl StructuralPartialEq for DeviceRequest
Auto Trait Implementations
impl RefUnwindSafe for DeviceRequest
impl Send for DeviceRequest
impl Sync for DeviceRequest
impl Unpin for DeviceRequest
impl UnwindSafe for DeviceRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more