pub struct ConfigSummary {
pub app_id: String,
pub app_secret_set: bool,
pub app_type: AppType,
pub enable_token_cache: bool,
pub base_url: String,
pub allow_custom_base_url: bool,
pub timeout: Duration,
pub retry_count: u32,
pub enable_log: bool,
pub header_count: usize,
pub max_response_size: u64,
}Expand description
📋 配置摘要(不包含敏感信息)
Fields§
§app_id: String🆔 应用ID
app_secret_set: bool🔑 应用密钥是否已设置
app_type: AppType🏷️ 应用类型
enable_token_cache: bool🔐 是否允许自动获取 token
base_url: String🌐 API基础URL
allow_custom_base_url: bool🔓 是否允许自定义 base_url 域名
timeout: Duration⏱️ 请求超时时间
retry_count: u32🔄 重试次数
enable_log: bool📝 是否启用日志
header_count: usize📋 自定义headers数量
max_response_size: u64响应体最大大小限制
Implementations§
Source§impl ConfigSummary
impl ConfigSummary
Sourcepub fn friendly_description(&self) -> String
pub fn friendly_description(&self) -> String
📋 获取友好的配置描述
Trait Implementations§
Source§impl Clone for ConfigSummary
impl Clone for ConfigSummary
Source§fn clone(&self) -> ConfigSummary
fn clone(&self) -> ConfigSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigSummary
impl Debug for ConfigSummary
Auto Trait Implementations§
impl Freeze for ConfigSummary
impl RefUnwindSafe for ConfigSummary
impl Send for ConfigSummary
impl Sync for ConfigSummary
impl Unpin for ConfigSummary
impl UnsafeUnpin for ConfigSummary
impl UnwindSafe for ConfigSummary
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