pub struct AuthHandler;Expand description
处理不同类型的 AccessToken 认证
Implementations§
Source§impl AuthHandler
impl AuthHandler
Sourcepub async fn apply_auth(
req_builder: RequestBuilder,
access_token_type: AccessTokenType,
config: &Config,
option: &RequestOption,
) -> Result<RequestBuilder, LarkAPIError>
pub async fn apply_auth( req_builder: RequestBuilder, access_token_type: AccessTokenType, config: &Config, option: &RequestOption, ) -> Result<RequestBuilder, LarkAPIError>
根据认证类型为请求添加相应的认证头
Auto Trait Implementations§
impl Freeze for AuthHandler
impl RefUnwindSafe for AuthHandler
impl Send for AuthHandler
impl Sync for AuthHandler
impl Unpin for AuthHandler
impl UnwindSafe for AuthHandler
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