pub struct DeviceRequest {
pub capabilities: Option<Vec<Vec<String>>>,
pub count: Option<i64>,
pub device_ids: Option<Vec<String>>,
pub driver: Option<String>,
pub options: Option<HashMap<String, String>>,
}Expand description
Used by GPU device drivers.
Fields§
§capabilities: Option<Vec<Vec<String>>>§count: Option<i64>§device_ids: Option<Vec<String>>§driver: Option<String>§options: Option<HashMap<String, String>>Implementations§
Source§impl DeviceRequest
impl DeviceRequest
pub fn new() -> DeviceRequest
Trait Implementations§
Source§impl Clone for DeviceRequest
impl Clone for DeviceRequest
Source§fn clone(&self) -> DeviceRequest
fn clone(&self) -> DeviceRequest
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 DeviceRequest
impl Debug for DeviceRequest
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 FromStr for DeviceRequest
Converts Query Parameters representation (style=form, explode=false) to a DeviceRequest value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for DeviceRequest
Converts Query Parameters representation (style=form, explode=false) to a DeviceRequest value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for DeviceRequest
impl PartialEq for DeviceRequest
Source§impl Serialize for DeviceRequest
impl Serialize for DeviceRequest
Source§impl ToString for DeviceRequest
Converts the DeviceRequest value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for DeviceRequest
Converts the DeviceRequest value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer
Source§impl Validate for DeviceRequest
impl Validate for DeviceRequest
Source§impl<'v_a> ValidateArgs<'v_a> for DeviceRequest
impl<'v_a> ValidateArgs<'v_a> for DeviceRequest
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