product_os_configuration

Struct Configuration

Source
pub struct Configuration {
Show 18 fields pub environment: String, pub root_path: String, pub network: Network, pub logging: Logging, pub certificate: Option<Certificate>, pub compression: Option<Compression>, pub command_control: Option<CommandControl>, pub security: Option<Security>, pub oidc: Option<OIDC>, pub store: Option<Stores>, pub authentication: Option<Authentication>, pub content: Option<Content>, pub proxy: Option<NetworkProxy>, pub browser: Option<Browser>, pub browser_automation: Option<BrowserAutomation>, pub crawler: Option<Crawler>, pub vpn: Option<VPN>, pub connectors: Option<BTreeMap<String, Definition>>,
}

Fields§

§environment: String§root_path: String§network: Network§logging: Logging§certificate: Option<Certificate>§compression: Option<Compression>§command_control: Option<CommandControl>§security: Option<Security>§oidc: Option<OIDC>§store: Option<Stores>§authentication: Option<Authentication>§content: Option<Content>§proxy: Option<NetworkProxy>§browser: Option<Browser>§browser_automation: Option<BrowserAutomation>§crawler: Option<Crawler>§vpn: Option<VPN>§connectors: Option<BTreeMap<String, Definition>>

Implementations§

Source§

impl Configuration

Source

pub fn new() -> Self

Source

pub fn environment(self) -> String

Source

pub fn log_level(&self) -> Level

Source

pub fn get_host(&self) -> String

Source

pub fn url_address(&self) -> Url

Source

pub fn socket_address(&self, port: Option<u16>, default_all: bool) -> SocketAddr

Source

pub fn get_socket_address( host: String, port: u16, default_all: bool, ) -> SocketAddr

Source

pub fn is_secure(&self) -> bool

Source

pub fn all_insecure(&self) -> bool

Source

pub fn insecure_port(&self) -> u16

Source

pub fn insecure_force_secure(&self) -> bool

Source

pub fn is_compression_gzip(&self) -> bool

Source

pub fn is_compression_deflate(&self) -> bool

Source

pub fn is_compression_brotli(&self) -> bool

Source

pub fn get_cc_max_servers(&self) -> u8

Source

pub fn get_cc_max_failures(&self) -> u8

Source

pub fn is_monitor_enabled(&self) -> bool

Source

pub fn is_pulse_check_enabled(&self) -> bool

Source

pub fn get_monitor_cron(&self) -> String

Source

pub fn get_hearbeat_cron(&self) -> String

Source

pub fn get_csp(&self) -> CSPConfig

Source

pub fn get_oidc_authorization_url(&self) -> Url

Source

pub fn get_store_key_value_enabled(&self) -> bool

Source

pub fn get_store_key_value_kind(&self) -> KeyValueKind

Source

pub fn get_store_key_value_host(&self) -> String

Source

pub fn get_store_key_value_port(&self) -> u16

Source

pub fn get_store_key_value_pool_size(&self) -> u8

Source

pub fn get_store_key_value_username(&self) -> Option<String>

Source

pub fn get_store_key_value_password(&self) -> Option<String>

Source

pub fn get_store_key_value_is_secure(&self) -> bool

Source

pub fn get_store_key_value_db_identifier(&self) -> u8

Source

pub fn get_store_key_value_default_limit(&self) -> u32

Source

pub fn get_store_key_value_default_offset(&self) -> u32

Source

pub fn get_store_queue_enabled(&self) -> bool

Source

pub fn get_store_queue_kind(&self) -> QueueKind

Source

pub fn get_store_queue_host(&self) -> String

Source

pub fn get_store_queue_port(&self) -> u16

Source

pub fn get_store_queue_pool_size(&self) -> u8

Source

pub fn get_store_queue_username(&self) -> Option<String>

Source

pub fn get_store_queue_password(&self) -> Option<String>

Source

pub fn get_store_queue_is_secure(&self) -> bool

Source

pub fn get_store_queue_db_identifier(&self) -> u8

Source

pub fn get_store_queue_default_limit(&self) -> u32

Source

pub fn get_store_queue_default_offset(&self) -> u32

Source

pub fn get_store_relational_enabled(&self) -> bool

Source

pub fn get_store_relational_kind(&self) -> RelationalKind

Source

pub fn get_store_relational_host(&self) -> String

Source

pub fn get_store_relational_port(&self) -> u16

Source

pub fn get_store_relational_pool_size(&self) -> u8

Source

pub fn get_store_relational_username(&self) -> Option<String>

Source

pub fn get_store_relational_password(&self) -> Option<String>

Source

pub fn get_store_relational_is_secure(&self) -> bool

Source

pub fn get_store_relational_db_identifier(&self) -> String

Source

pub fn get_store_relational_default_limit(&self) -> u32

Source

pub fn get_store_relational_default_offset(&self) -> u32

Source

pub fn get_authentication_app_id(&self) -> String

Source

pub fn get_authentication_client_id(&self) -> String

Source

pub fn get_authentication_client_secret(&self) -> String

Source

pub fn get_authentication_client_key(&self) -> String

Source

pub fn get_authentication_default_scope(&self) -> String

Source

pub fn get_authentication_audience(&self) -> String

Source

pub fn get_authentication_token_lifetime(&self) -> u32

Source

pub fn get_authentication_scopes(&self) -> BTreeMap<String, String>

Source

pub fn get_authentication_oidc_providers( &self, ) -> Vec<AuthenticationOIDCProvider>

Source

pub fn get_authentication_oidc_redirect_uri(&self) -> Url

Source

pub fn get_content_setup(&self) -> ContentSetup

Trait Implementations§

Source§

impl Clone for Configuration

Source§

fn clone(&self) -> Configuration

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Configuration

Source§

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

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

impl<'de> Deserialize<'de> for Configuration

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Configuration

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> CastSlice<'_, T> for T

Source§

fn cast_slice(selves: &[T]) -> &[T]

Source§

impl<T> CastSliceMut<'_, T> for T

Source§

fn cast_slice_mut(selves: &mut [T]) -> &mut [T]

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

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

Source§

fn vzip(self) -> V

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

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

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

Source§

impl<T> MaybeSendSync for T