pub struct Config {
pub app_id: String,
pub app_secret: String,
pub base_url: String,
pub enable_token_cache: bool,
pub timeout: Option<f32>,
pub app_type: AppType,
pub http_client: Client,
pub req_timeout: Option<Duration>,
pub header: HashMap<String, String>,
}Fields§
§app_id: String§app_secret: String§base_url: String域名, 默认为 https://open.feishu.cn
enable_token_cache: bool§timeout: Option<f32>客户端超时时间, 单位秒, 默认永不超时
app_type: AppType应用类型, 默认为自建应用
http_client: Client§req_timeout: Option<Duration>§header: HashMap<String, String>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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)