pub struct SignerClientConfig {
pub endpoint: String,
pub timeout_seconds: u64,
pub enable_tls: bool,
pub tls_domain: Option<String>,
pub ca_cert: Option<String>,
pub client_cert: Option<String>,
pub client_key: Option<String>,
}Expand description
Signer 客户端配置
其他服务作为客户端连接 Signer 服务时使用的配置
Fields§
§endpoint: StringSigner 服务地址
gRPC endpoint,例如: “http://127.0.0.1:8080” 或 “https://ks.example.com:8443”
timeout_seconds: u64请求超时时间(秒)
连接 Signer 服务的超时时间
enable_tls: bool是否启用 TLS
默认为 false(使用 HTTP)。设为 true 时使用 HTTPS/gRPC over TLS。
tls_domain: Option<String>TLS 域名(启用 TLS 时必需)
用于 TLS 证书验证的域名
ca_cert: Option<String>CA 证书路径(用于验证服务端证书)
用于验证 Signer 服务端证书的 CA 证书文件路径
client_cert: Option<String>客户端证书路径(mTLS)
用于双向 TLS 认证的客户端证书文件路径
client_key: Option<String>客户端私钥路径(mTLS)
用于双向 TLS 认证的客户端私钥文件路径
Trait Implementations§
Source§impl Clone for SignerClientConfig
impl Clone for SignerClientConfig
Source§fn clone(&self) -> SignerClientConfig
fn clone(&self) -> SignerClientConfig
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 SignerClientConfig
impl Debug for SignerClientConfig
Source§impl Default for SignerClientConfig
impl Default for SignerClientConfig
Source§impl<'de> Deserialize<'de> for SignerClientConfig
impl<'de> Deserialize<'de> for SignerClientConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SignerClientConfig
impl RefUnwindSafe for SignerClientConfig
impl Send for SignerClientConfig
impl Sync for SignerClientConfig
impl Unpin for SignerClientConfig
impl UnsafeUnpin for SignerClientConfig
impl UnwindSafe for SignerClientConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request