pub struct ProtocolConfig {
pub name: String,
pub endpoints: EndpointConfig,
pub auth: AuthConfig,
pub extra_headers: Vec<(String, String)>,
}Expand description
协议配置
定义协议的静态配置,包括名称、端点、认证方式等。
Fields§
§name: String协议名称
endpoints: EndpointConfig端点配置
auth: AuthConfig认证配置
extra_headers: Vec<(String, String)>额外的静态头部
Trait Implementations§
Source§impl Clone for ProtocolConfig
impl Clone for ProtocolConfig
Source§fn clone(&self) -> ProtocolConfig
fn clone(&self) -> ProtocolConfig
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 moreAuto Trait Implementations§
impl Freeze for ProtocolConfig
impl !RefUnwindSafe for ProtocolConfig
impl Send for ProtocolConfig
impl Sync for ProtocolConfig
impl Unpin for ProtocolConfig
impl !UnwindSafe for ProtocolConfig
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