struct ConfigInner {Show 13 fields
pub log_level: LogLevel,
pub token: Arc<str>,
pub listeners: Vec<ListenAddress>,
pub statistics: StatisticCategories,
pub default_certificate: DefaultCertificateSource,
pub certificates: Vec<CertificateSource>,
pub hsts: Hsts,
pub https_redirect: bool,
pub send_alt_svc: bool,
pub send_server: bool,
pub send_csp: bool,
pub store: BackendType,
pub store_config: HashMap<String, String>,
}Expand description
Actual configuration storage inside of a Config
Fields§
§log_level: LogLevelMinimum level of logs to be collected/displayed. Debug and trace levels may expose secret information, so are not recommended for production deployments.
token: Arc<str>API token, used for authentication of gRPC clients
listeners: Vec<ListenAddress>Addresses on which the links redirector server will listen on
statistics: StatisticCategoriesWhich types of statistics should be collected
default_certificate: DefaultCertificateSourceDefault TLS certificate source
certificates: Vec<CertificateSource>TLS certificate sources
hsts: HstsHTTP Strict Transport Security setting on redirect
https_redirect: boolRedirect incoming HTTP requests to HTTPS first, before the actual external redirect
send_alt_svc: boolSend the Alt-Svc header advertising h2 (HTTP/2.0 with TLS) support
on port 443
send_server: boolSend the Server header
send_csp: boolSend the Content-Security-Policy header
store: BackendTypeThe store backend type
store_config: HashMap<String, String>The store backend configuration
Implementations§
Source§impl ConfigInner
impl ConfigInner
Trait Implementations§
Source§impl Debug for ConfigInner
impl Debug for ConfigInner
Source§impl Default for ConfigInner
impl Default for ConfigInner
Source§impl PartialEq for ConfigInner
impl PartialEq for ConfigInner
impl StructuralPartialEq for ConfigInner
Auto Trait Implementations§
impl Freeze for ConfigInner
impl RefUnwindSafe for ConfigInner
impl Send for ConfigInner
impl Sync for ConfigInner
impl Unpin for ConfigInner
impl UnwindSafe for ConfigInner
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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