pub struct Response {
pub protocol_version: String,
pub server: Option<String>,
pub daystart: Option<DayStart>,
pub apps: Vec<App>,
}
Expand description
An Omaha protocol response.
This holds the data for a response from the Omaha service.
See https://github.com/google/omaha/blob/HEAD/doc/ServerProtocolV3.md#response
Fields§
§protocol_version: String
The current Omaha protocol version (which this is meant to be used with, is 3.0. This should always be set to “3.0”.
This is the ‘protocol’ attribute of the response object.
server: Option<String>
A string identifying the server or server family for diagnostic purposes.
daystart: Option<DayStart>
The server time at the time the request was received.
apps: Vec<App>
The applications to update.
These are the ‘app’ children objects of the request object.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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 StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)