pub struct StaticConfig {
pub services: BTreeMap<String, Vec<Instance>>,
}Expand description
由配置提供的固定实例集合,不向注册中心写入。
Fields§
§services: BTreeMap<String, Vec<Instance>>按逻辑服务名绑定的目标,不接受重复键。
Trait Implementations§
Source§impl Clone for StaticConfig
impl Clone for StaticConfig
Source§impl<'de> Deserialize<'de> for StaticConfig
impl<'de> Deserialize<'de> for StaticConfig
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 Freeze for StaticConfig
impl RefUnwindSafe for StaticConfig
impl Send for StaticConfig
impl Sync for StaticConfig
impl Unpin for StaticConfig
impl UnsafeUnpin for StaticConfig
impl UnwindSafe for StaticConfig
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