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

pub struct UpdateReport {
    pub update_id: UpdateRequestId,
    pub operation_results: Vec<OperationResult>,
}

An encodable report of the installation outcome.

Fields

update_id
operation_results

Methods

impl UpdateReport
[src]

fn new(update_id: String, results: Vec<OperationResult>) -> UpdateReport

Instantiate a new report with a vector of installation outcomes.

fn single(update_id: UpdateRequestId, result_code: UpdateResultCode, result_text: String) -> UpdateReport

Instantiate a new report with a single installation outcome.

Trait Implementations

impl Default for UpdateReport
[src]

fn default() -> Self

Returns the "default value" for a type. Read more

Derived Implementations

impl Eq for UpdateReport
[src]

impl PartialEq for UpdateReport
[src]

fn eq(&self, __arg_0: &UpdateReport) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &UpdateReport) -> bool

This method tests for !=.

impl Debug for UpdateReport
[src]

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

Formats the value using the given formatter.

impl Clone for UpdateReport
[src]

fn clone(&self) -> UpdateReport

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 Encodable for UpdateReport
[src]

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

Serialize a value using an Encoder.

impl Decodable for UpdateReport
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<UpdateReport, __D::Error>

Deserialize a value using a Decoder.