pub struct RequestOptionBuilder { /* private fields */ }Implementations§
Source§impl RequestOptionBuilder
impl RequestOptionBuilder
pub fn tenant_key(self, tenant_key: impl ToString) -> Self
pub fn user_access_token(self, user_access_token: impl ToString) -> Self
pub fn app_access_token(self, app_access_token: impl ToString) -> Self
pub fn tenant_access_token(self, tenant_access_token: impl ToString) -> Self
pub fn need_helpdesk_auth(self, need_helpdesk_auth: bool) -> Self
pub fn request_id(self, request_id: impl ToString) -> Self
pub fn app_ticket(self, app_ticket: impl ToString) -> Self
pub fn file_upload(self, file_upload: bool) -> Self
pub fn file_download(self, file_download: bool) -> Self
pub fn header(self, header: HashMap<String, String>) -> Self
Sourcepub fn add_header(self, key: impl ToString, value: impl ToString) -> Self
pub fn add_header(self, key: impl ToString, value: impl ToString) -> Self
添加请求头
pub fn build(self) -> RequestOption
Trait Implementations§
Source§impl Default for RequestOptionBuilder
impl Default for RequestOptionBuilder
Source§fn default() -> RequestOptionBuilder
fn default() -> RequestOptionBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RequestOptionBuilder
impl RefUnwindSafe for RequestOptionBuilder
impl Send for RequestOptionBuilder
impl Sync for RequestOptionBuilder
impl Unpin for RequestOptionBuilder
impl UnwindSafe for RequestOptionBuilder
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