Struct sota::datatype::report::DeviceReport [] [src]

pub struct DeviceReport<'d, 'r> {
    pub device: &'d str,
    pub update_report: &'r UpdateReport,
}

Bind the installation outcome report to a specific device.

Fields

device
update_report

Methods

impl<'d, 'r> DeviceReport<'d, 'r>
[src]

fn new(device: &'d str, update_report: &'r UpdateReport) -> DeviceReport<'d, 'r>

Instantiate a new installation outcome report for a specific device.

Trait Implementations

Derived Implementations

impl<'d, 'r> Debug for DeviceReport<'d, 'r>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'d, 'r> Clone for DeviceReport<'d, 'r>
[src]

fn clone(&self) -> DeviceReport<'d, 'r>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<'d, 'r> Encodable for DeviceReport<'d, 'r>
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

Serialize a value using an Encoder.