pub struct RequestOptions {
pub no_credential: bool,
pub with_purchase_ticket: bool,
pub skip_batch_error: bool,
pub skip_lock_conflict: bool,
}Expand description
Request options for customizing API calls
Fields§
§no_credential: boolDon’t include authentication credentials
with_purchase_ticket: boolInclude purchase ticket header
skip_batch_error: boolSkip batch error handling (return first error)
skip_lock_conflict: boolSkip lock conflict handling
Implementations§
Source§impl RequestOptions
impl RequestOptions
pub fn new() -> Self
pub fn no_credential(self) -> Self
pub fn with_purchase_ticket(self) -> Self
pub fn skip_batch_error(self) -> Self
pub fn skip_lock_conflict(self) -> Self
Trait Implementations§
Source§impl Clone for RequestOptions
impl Clone for RequestOptions
Source§fn clone(&self) -> RequestOptions
fn clone(&self) -> RequestOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RequestOptions
impl Debug for RequestOptions
Source§impl Default for RequestOptions
impl Default for RequestOptions
Source§fn default() -> RequestOptions
fn default() -> RequestOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RequestOptions
impl RefUnwindSafe for RequestOptions
impl Send for RequestOptions
impl Sync for RequestOptions
impl Unpin for RequestOptions
impl UnsafeUnpin for RequestOptions
impl UnwindSafe for RequestOptions
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