pub struct RequestOptionBuilder { /* private fields */ }Implementations§
Source§impl RequestOptionBuilder
impl RequestOptionBuilder
pub fn tenant_key(self, tenant_key: impl ToString) -> RequestOptionBuilder
pub fn user_access_token( self, user_access_token: impl ToString, ) -> RequestOptionBuilder
pub fn app_access_token( self, app_access_token: impl ToString, ) -> RequestOptionBuilder
pub fn tenant_access_token( self, tenant_access_token: impl ToString, ) -> RequestOptionBuilder
pub fn need_helpdesk_auth( self, need_helpdesk_auth: bool, ) -> RequestOptionBuilder
pub fn request_id(self, request_id: impl ToString) -> RequestOptionBuilder
pub fn app_ticket(self, app_ticket: impl ToString) -> RequestOptionBuilder
pub fn file_upload(self, file_upload: bool) -> RequestOptionBuilder
pub fn file_download(self, file_download: bool) -> RequestOptionBuilder
pub fn header(self, header: HashMap<String, String>) -> RequestOptionBuilder
Sourcepub fn add_header(
self,
key: impl ToString,
value: impl ToString,
) -> RequestOptionBuilder
pub fn add_header( self, key: impl ToString, value: impl ToString, ) -> RequestOptionBuilder
添加请求头
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 UnsafeUnpin 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