pub struct ConfigConfig {
pub server_addr: ServerAddr,
pub namespace: String,
pub config_ids: Vec<String>,
pub auth_token: Option<String>,
}Fields§
§server_addr: ServerAddrConfiguration center address
namespace: StringNamespace, default: public
config_ids: Vec<String>Configuration IDs, e.g.: ["application.yaml"]
auth_token: Option<String>Namespace authentication token
Trait Implementations§
Source§impl Clone for ConfigConfig
impl Clone for ConfigConfig
Source§impl Debug for ConfigConfig
impl Debug for ConfigConfig
Source§impl Default for ConfigConfig
impl Default for ConfigConfig
Source§impl<'de> Deserialize<'de> for ConfigConfig
impl<'de> Deserialize<'de> for ConfigConfig
Source§fn 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 Forget for ConfigConfig
impl Freeze for ConfigConfig
impl Move for ConfigConfig
impl RefUnwindSafe for ConfigConfig
impl Send for ConfigConfig
impl Sync for ConfigConfig
impl Unpin for ConfigConfig
impl UnsafeUnpin for ConfigConfig
impl UnwindSafe for ConfigConfig
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