pub struct ClientConfig {
pub app_id: String,
pub cluster: String,
pub cache_dir: Option<String>,
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<String>
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 moreSource§impl Debug for ClientConfig
impl Debug for ClientConfig
Source§impl From<ClientConfig> for JsValue
impl From<ClientConfig> for JsValue
Source§fn from(value: ClientConfig) -> Self
fn from(value: ClientConfig) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ClientConfig
impl FromWasmAbi for ClientConfig
Source§impl IntoWasmAbi for ClientConfig
impl IntoWasmAbi for ClientConfig
Source§impl LongRefFromWasmAbi for ClientConfig
impl LongRefFromWasmAbi for ClientConfig
Source§impl OptionFromWasmAbi for ClientConfig
impl OptionFromWasmAbi for ClientConfig
Source§impl OptionIntoWasmAbi for ClientConfig
impl OptionIntoWasmAbi for ClientConfig
Source§impl RefFromWasmAbi for ClientConfig
impl RefFromWasmAbi for ClientConfig
Source§type Anchor = RcRef<ClientConfig>
type Anchor = RcRef<ClientConfig>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for ClientConfig
impl RefMutFromWasmAbi for ClientConfig
Source§impl TryFromJsValue for ClientConfig
impl TryFromJsValue for ClientConfig
Source§impl VectorFromWasmAbi for ClientConfig
impl VectorFromWasmAbi for ClientConfig
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ClientConfig]>
Source§impl VectorIntoJsValue for ClientConfig
impl VectorIntoJsValue for ClientConfig
fn vector_into_jsvalue(vector: Box<[ClientConfig]>) -> JsValue
Source§impl VectorIntoWasmAbi for ClientConfig
impl VectorIntoWasmAbi for ClientConfig
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ClientConfig]>) -> Self::Abi
Source§impl WasmDescribeVector for ClientConfig
impl WasmDescribeVector for ClientConfig
impl SupportsConstructor for ClientConfig
impl SupportsInstanceProperty for ClientConfig
impl SupportsStaticProperty for ClientConfig
Auto 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.