Struct ConfigInner

Source
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: LogLevel

Minimum 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: StatisticCategories

Which types of statistics should be collected

§default_certificate: DefaultCertificateSource

Default TLS certificate source

§certificates: Vec<CertificateSource>

TLS certificate sources

§hsts: Hsts

HTTP Strict Transport Security setting on redirect

§https_redirect: bool

Redirect incoming HTTP requests to HTTPS first, before the actual external redirect

§send_alt_svc: bool

Send the Alt-Svc header advertising h2 (HTTP/2.0 with TLS) support on port 443

§send_server: bool

Send the Server header

§send_csp: bool

Send the Content-Security-Policy header

§store: BackendType

The store backend type

§store_config: HashMap<String, String>

The store backend configuration

Implementations§

Source§

impl ConfigInner

Source

fn update_from_partial(&mut self, partial: &Partial)

Update the config from a Partial. This overwrites all fields of this Config from the provided Partial, if they are set in that partial config.

Trait Implementations§

Source§

impl Debug for ConfigInner

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ConfigInner

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for ConfigInner

Source§

fn eq(&self, other: &ConfigInner) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ConfigInner

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T