Struct bollard_stubs::models::DeviceRequest
source · pub struct DeviceRequest {
pub driver: Option<String>,
pub count: Option<i64>,
pub device_ids: Option<Vec<String>>,
pub capabilities: Option<Vec<Vec<String>>>,
pub options: Option<HashMap<String, String>>,
}
Expand description
A request for devices to be sent to device drivers
Fields§
§driver: Option<String>
§count: Option<i64>
§device_ids: Option<Vec<String>>
§capabilities: Option<Vec<Vec<String>>>
A list of capabilities; an OR list of AND lists of capabilities.
options: Option<HashMap<String, String>>
Driver-specific options, specified as a key/value pairs. These options are passed directly to the driver.
Trait Implementations§
source§impl Clone for DeviceRequest
impl Clone for DeviceRequest
source§fn clone(&self) -> DeviceRequest
fn clone(&self) -> DeviceRequest
Returns a copy 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 DeviceRequest
impl Debug for DeviceRequest
source§impl Default for DeviceRequest
impl Default for DeviceRequest
source§fn default() -> DeviceRequest
fn default() -> DeviceRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DeviceRequest
impl<'de> Deserialize<'de> for DeviceRequest
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<DeviceRequest> for DeviceRequest
impl PartialEq<DeviceRequest> for DeviceRequest
source§fn eq(&self, other: &DeviceRequest) -> bool
fn eq(&self, other: &DeviceRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.