Struct omaha_client::request_builder::RequestParams
source · pub struct RequestParams {
pub source: InstallSource,
pub use_configured_proxies: bool,
pub disable_updates: bool,
pub offer_update_if_same_version: bool,
}
Expand description
These are the parameters that describe how the request should be performed.
Fields§
§source: InstallSource
The install source for a request changes a number of properties of the request, including the HTTP request headers, and influences how Omaha services the request (e.g. throttling)
use_configured_proxies: bool
If true, the request should use any configured proxies. This allows the bypassing of proxies if there are difficulties in communicating with the Omaha service.
disable_updates: bool
If true, the request should set the “updatedisabled” property for all apps in the update check request.
offer_update_if_same_version: bool
If true, the request should set the “sameversionupdate” property for all apps in the update check request.
Trait Implementations§
source§impl Clone for RequestParams
impl Clone for RequestParams
source§fn clone(&self) -> RequestParams
fn clone(&self) -> RequestParams
Returns a copy 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 RequestParams
impl Debug for RequestParams
source§impl Default for RequestParams
impl Default for RequestParams
source§fn default() -> RequestParams
fn default() -> RequestParams
Returns the “default value” for a type. Read more
source§impl PartialEq for RequestParams
impl PartialEq for RequestParams
source§fn eq(&self, other: &RequestParams) -> bool
fn eq(&self, other: &RequestParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RequestParams
impl StructuralPartialEq for RequestParams
Auto Trait Implementations§
impl Freeze for RequestParams
impl RefUnwindSafe for RequestParams
impl Send for RequestParams
impl Sync for RequestParams
impl Unpin for RequestParams
impl UnwindSafe for RequestParams
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)