pub struct DeviceSummary {
pub display_name: String,
pub vid: u16,
pub pid: u16,
pub interface_count: usize,
pub vendor_interface_count: usize,
pub support_label: String,
pub support_detail: String,
pub capabilities: Vec<String>,
pub evidence_label: String,
pub evidence_source_count: Option<usize>,
pub control_available: bool,
}Fields§
§display_name: String§vid: u16§pid: u16§interface_count: usize§vendor_interface_count: usize§support_label: String§support_detail: String§capabilities: Vec<String>§evidence_label: String§evidence_source_count: Option<usize>Additive v1 metadata for localized evidence counts; old Agents omit it.
v1 的可选扩展字段,用于本地化来源数量;旧版 Agent 不提供该字段。
control_available: boolImplementations§
Source§impl DeviceSummary
impl DeviceSummary
pub fn usb_identity(&self) -> String
Trait Implementations§
Source§impl Clone for DeviceSummary
impl Clone for DeviceSummary
Source§fn clone(&self) -> DeviceSummary
fn clone(&self) -> DeviceSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeviceSummary
impl Debug for DeviceSummary
Source§impl<'de> Deserialize<'de> for DeviceSummary
impl<'de> Deserialize<'de> for DeviceSummary
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
impl Eq for DeviceSummary
Source§impl PartialEq for DeviceSummary
impl PartialEq for DeviceSummary
Source§fn eq(&self, other: &DeviceSummary) -> bool
fn eq(&self, other: &DeviceSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DeviceSummary
impl Serialize for DeviceSummary
impl StructuralPartialEq for DeviceSummary
Auto Trait Implementations§
impl Freeze for DeviceSummary
impl RefUnwindSafe for DeviceSummary
impl Send for DeviceSummary
impl Sync for DeviceSummary
impl Unpin for DeviceSummary
impl UnsafeUnpin for DeviceSummary
impl UnwindSafe for DeviceSummary
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