pub struct RequestOption { /* private fields */ }Expand description
请求选项
用于配置 API 请求的各种选项,如认证令牌、请求头等
Implementations§
Source§impl RequestOption
impl RequestOption
Sourcepub fn builder() -> RequestOptionBuilder
pub fn builder() -> RequestOptionBuilder
创建请求选项构建器
Trait Implementations§
Source§impl Clone for RequestOption
impl Clone for RequestOption
Source§fn clone(&self) -> RequestOption
fn clone(&self) -> RequestOption
Returns a duplicate 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 RequestOption
impl Debug for RequestOption
Source§impl Default for RequestOption
impl Default for RequestOption
Source§fn default() -> RequestOption
fn default() -> RequestOption
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RequestOption
impl RefUnwindSafe for RequestOption
impl Send for RequestOption
impl Sync for RequestOption
impl Unpin for RequestOption
impl UnsafeUnpin for RequestOption
impl UnwindSafe for RequestOption
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