pub struct RemoteSettingsGlobalSettings {
pub server: String,
pub default_bucket: String,
pub default_collection: String,
pub http_request_timeout: Duration,
pub http_connect_timeout: Duration,
pub cron_interval: Duration,
pub test_changes: Option<Vec<String>>,
}
Fields
server: String
The server to sync from, including the protocol and port, but not including a trailing slash.
Examples
http://127.0.0.1
https://firefox.settings.services.mozilla.com
default_bucket: String
The bucket to use for Remote Settings providers, if not overridden by the provider.
default_collection: String
The collection to use for Remote Settings providers, if not overridden by the provider.
http_request_timeout: Duration
The HTTP request timeout (in seconds) for the underlying client of the Remote Settings client:
ReqwestClient
.
http_connect_timeout: Duration
The HTTP connect timeout (in seconds) for the underlying client of the Remote Settings client:
ReqwestClient
.
cron_interval: Duration
The interval (in seconds) of the Remote Settings cron job. This should
be set smaller than RemoteSettingsConfig::resync_interval
.
test_changes: Option<Vec<String>>
Only used for integration tests. This field populates the mock returned remote settings collection from inside the `merino_test_macro!(|settings| {…}) call.
Trait Implementations
sourceimpl Clone for RemoteSettingsGlobalSettings
impl Clone for RemoteSettingsGlobalSettings
sourcefn clone(&self) -> RemoteSettingsGlobalSettings
fn clone(&self) -> RemoteSettingsGlobalSettings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RemoteSettingsGlobalSettings
impl Debug for RemoteSettingsGlobalSettings
sourceimpl<'de> Deserialize<'de> for RemoteSettingsGlobalSettings
impl<'de> Deserialize<'de> for RemoteSettingsGlobalSettings
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for RemoteSettingsGlobalSettings
impl Send for RemoteSettingsGlobalSettings
impl Sync for RemoteSettingsGlobalSettings
impl Unpin for RemoteSettingsGlobalSettings
impl UnwindSafe for RemoteSettingsGlobalSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more