@@ -14,12 +14,8 @@ use crate::error::warn;
1414use crate :: { ApiResult , Error , RemoteSettingsContext , Result } ;
1515
1616/// Remote settings configuration
17- ///
18- /// This is the version used in the new API, hence the `2` at the end. The plan is to move
19- /// consumers to the new API, remove the RemoteSettingsConfig struct, then remove the `2` from this
20- /// name.
2117#[ derive( Debug , Default , Clone , uniffi:: Record ) ]
22- pub struct RemoteSettingsConfig2 {
18+ pub struct RemoteSettingsConfig {
2319 /// The Remote Settings server to use. Defaults to [RemoteSettingsServer::Prod],
2420 #[ uniffi( default = None ) ]
2521 pub server : Option < RemoteSettingsServer > ,
@@ -31,23 +27,6 @@ pub struct RemoteSettingsConfig2 {
3127 pub app_context : Option < RemoteSettingsContext > ,
3228}
3329
34- /// Custom configuration for the client.
35- /// Currently includes the following:
36- /// - `server`: The Remote Settings server to use. If not specified, defaults to the production server (`RemoteSettingsServer::Prod`).
37- /// - `server_url`: An optional custom Remote Settings server URL. Deprecated; please use `server` instead.
38- /// - `bucket_name`: The optional name of the bucket containing the collection on the server. If not specified, the standard bucket will be used.
39- /// - `collection_name`: The name of the collection for the settings server.
40- #[ derive( Debug , Clone , uniffi:: Record ) ]
41- pub struct RemoteSettingsConfig {
42- pub collection_name : String ,
43- #[ uniffi( default = None ) ]
44- pub bucket_name : Option < String > ,
45- #[ uniffi( default = None ) ]
46- pub server_url : Option < String > ,
47- #[ uniffi( default = None ) ]
48- pub server : Option < RemoteSettingsServer > ,
49- }
50-
5130/// The Remote Settings server that the client should use.
5231#[ derive( Debug , Clone , uniffi:: Enum ) ]
5332pub enum RemoteSettingsServer {
0 commit comments