pub struct ApiDeviceInfo {
pub device_id: u32,
pub name: String,
pub vendor: String,
pub memory_bytes: Option<u64>,
pub backend: Option<String>,
}Fields§
§device_id: u32§name: String§vendor: String§memory_bytes: Option<u64>§backend: Option<String>Trait Implementations§
Source§impl Clone for ApiDeviceInfo
impl Clone for ApiDeviceInfo
Source§fn clone(&self) -> ApiDeviceInfo
fn clone(&self) -> ApiDeviceInfo
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 ApiDeviceInfo
impl Debug for ApiDeviceInfo
Source§impl<'de> Deserialize<'de> for ApiDeviceInfo
impl<'de> Deserialize<'de> for ApiDeviceInfo
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 for ApiDeviceInfo
impl PartialEq for ApiDeviceInfo
Source§impl Serialize for ApiDeviceInfo
impl Serialize for ApiDeviceInfo
impl StructuralPartialEq for ApiDeviceInfo
Auto Trait Implementations§
impl Freeze for ApiDeviceInfo
impl RefUnwindSafe for ApiDeviceInfo
impl Send for ApiDeviceInfo
impl Sync for ApiDeviceInfo
impl Unpin for ApiDeviceInfo
impl UnwindSafe for ApiDeviceInfo
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