Struct bollard::service::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<DeviceRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeviceRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for DeviceRequest
impl PartialEq for DeviceRequest
source§impl Serialize for DeviceRequest
impl Serialize for DeviceRequest
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DeviceRequest
Auto Trait Implementations§
impl Freeze for DeviceRequest
impl RefUnwindSafe for DeviceRequest
impl Send for DeviceRequest
impl Sync for DeviceRequest
impl Unpin for DeviceRequest
impl UnwindSafe for DeviceRequest
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)