pub struct ClientConfig {
pub app_id: String,
pub cluster: String,
pub cache_dir: Option<PathBuf>,
pub config_server: String,
pub secret: Option<String>,
pub label: Option<String>,
pub ip: Option<String>,
}
Expand description
Configuration for the Apollo client.
This struct holds the necessary information to connect to an Apollo Configuration center.
Fields§
§app_id: String
The unique identifier for your application.
cluster: String
The cluster name to connect to (e.g., “default”).
cache_dir: Option<PathBuf>
The directory to store the cache files.
config_server: String
The Apollo config server URL to connect to.
secret: Option<String>
Secret key for authentication with the Apollo server.
label: Option<String>
The label of the Apollo client. This is used to identify the client in the Apollo server in the case of a grayscale release.
ip: Option<String>
The IP address of the Apollo client. This is used to identify the client in the Apollo server in the case of a grayscale release.
Implementations§
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
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 ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnwindSafe for ClientConfig
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