pub struct Config {
pub app_id: String,
pub app_secret: String,
pub base_url: String,
pub enable_token_cache: bool,
pub app_type: AppType,
pub http_client: Client,
pub req_timeout: Option<Duration>,
pub header: HashMap<String, String>,
pub token_manager: Arc<Mutex<TokenManager>>,
pub app_ticket_manager: Arc<Mutex<AppTicketManager>>,
}Fields§
§app_id: String§app_secret: String§base_url: String域名, 默认为 https://open.feishu.cn
enable_token_cache: bool§app_type: AppType应用类型, 默认为自建应用
http_client: Client§req_timeout: Option<Duration>客户端超时时间, 默认永不超时
header: HashMap<String, String>§token_manager: Arc<Mutex<TokenManager>>Token 管理器
app_ticket_manager: Arc<Mutex<AppTicketManager>>App Ticket 管理器
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl !RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl !UnwindSafe for Config
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