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 timeout: Duration,
pub retry_count: u32,
pub enable_log: bool,
pub header_count: usize,
}Expand description
📋 配置摘要(不包含敏感信息)
Fields§
§app_id: String🆔 应用ID
app_secret_set: bool🔑 应用密钥是否已设置
app_type: AppType🏷️ 应用类型
enable_token_cache: bool🔐 是否允许自动获取 token
base_url: String🌐 API基础URL
timeout: Duration⏱️ 请求超时时间
retry_count: u32🔄 重试次数
enable_log: bool📝 是否启用日志
header_count: usize📋 自定义headers数量
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 · 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.