pub struct ServerTlsConfig {
pub cert_path: String,
pub key_path: String,
}Expand description
Server-side TLS configuration for HTTP consumer endpoints.
When present, the HTTP server binds with TLS via axum_server::from_tcp_rustls.
When absent, the server binds plain HTTP via axum::serve.
Fields§
§cert_path: StringPath to the PEM-encoded server certificate chain.
key_path: StringPath to the PEM-encoded server private key.
Trait Implementations§
Source§impl Clone for ServerTlsConfig
impl Clone for ServerTlsConfig
Source§fn clone(&self) -> ServerTlsConfig
fn clone(&self) -> ServerTlsConfig
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 moreAuto Trait Implementations§
impl Freeze for ServerTlsConfig
impl RefUnwindSafe for ServerTlsConfig
impl Send for ServerTlsConfig
impl Sync for ServerTlsConfig
impl Unpin for ServerTlsConfig
impl UnsafeUnpin for ServerTlsConfig
impl UnwindSafe for ServerTlsConfig
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