Struct remote_settings::config::RemoteSettingsConfig
source · pub struct RemoteSettingsConfig {
pub server: Option<RemoteSettingsServer>,
pub server_url: Option<String>,
pub bucket_name: Option<String>,
pub collection_name: String,
}
Expand description
Custom configuration for the client. Currently includes the following:
server
: The Remote Settings server to use. If not specified, defaults to the production server (RemoteSettingsServer::Prod
).server_url
: An optional custom Remote Settings server URL. Deprecated; please useserver
instead.bucket_name
: The optional name of the bucket containing the collection on the server. If not specified, the standard bucket will be used.collection_name
: The name of the collection for the settings server.
Fields§
§server: Option<RemoteSettingsServer>
§server_url: Option<String>
§bucket_name: Option<String>
§collection_name: String
Trait Implementations§
source§impl Clone for RemoteSettingsConfig
impl Clone for RemoteSettingsConfig
source§fn clone(&self) -> RemoteSettingsConfig
fn clone(&self) -> RemoteSettingsConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RemoteSettingsConfig
impl RefUnwindSafe for RemoteSettingsConfig
impl Send for RemoteSettingsConfig
impl Sync for RemoteSettingsConfig
impl Unpin for RemoteSettingsConfig
impl UnwindSafe for RemoteSettingsConfig
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, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more