pub struct ConfigInner {
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>>,
}Expand description
内部配置数据,被多个服务共享
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§
Source§impl Debug for ConfigInner
impl Debug for ConfigInner
Auto Trait Implementations§
impl Freeze for ConfigInner
impl !RefUnwindSafe for ConfigInner
impl Send for ConfigInner
impl Sync for ConfigInner
impl Unpin for ConfigInner
impl !UnwindSafe for ConfigInner
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