pub struct HttpServerConfiguration {
pub cert: Option<String>,
pub cipher: Option<Vec<CipherSuite>>,
pub clientcacert: Option<String>,
pub curves: Option<Vec<EcdhCurve>>,
pub key: Option<String>,
pub listen: Option<String>,
pub tls_version: Option<String>,
}
Expand description
goland:noinspection GoVetStructTag
Fields§
§cert: Option<String>
Cert contains either a file to a certificate, or the certificate itself in PEM format to use as a server certificate.
cipher: Option<Vec<CipherSuite>>
§clientcacert: Option<String>
ClientCACert contains either a file or a certificate in PEM format to verify the connecting clients by.
curves: Option<Vec<EcdhCurve>>
ECDHCurveList is a list of supported ECDHCurve
key: Option<String>
Key contains either a file name to a private key, or the private key itself in PEM format to use as a server key.
listen: Option<String>
Listen contains the IP and port to listen on.
tls_version: Option<String>
Implementations§
Source§impl HttpServerConfiguration
impl HttpServerConfiguration
pub fn new() -> HttpServerConfiguration
Trait Implementations§
Source§impl Clone for HttpServerConfiguration
impl Clone for HttpServerConfiguration
Source§fn clone(&self) -> HttpServerConfiguration
fn clone(&self) -> HttpServerConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for HttpServerConfiguration
impl Debug for HttpServerConfiguration
Source§impl<'de> Deserialize<'de> for HttpServerConfiguration
impl<'de> Deserialize<'de> for HttpServerConfiguration
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>,
Source§impl FromStr for HttpServerConfiguration
Converts Query Parameters representation (style=form, explode=false) to a HttpServerConfiguration value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for HttpServerConfiguration
Converts Query Parameters representation (style=form, explode=false) to a HttpServerConfiguration value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for HttpServerConfiguration
impl PartialEq for HttpServerConfiguration
Source§impl Serialize for HttpServerConfiguration
impl Serialize for HttpServerConfiguration
Source§impl ToString for HttpServerConfiguration
Converts the HttpServerConfiguration value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for HttpServerConfiguration
Converts the HttpServerConfiguration value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer