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
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more