pub struct NacosRegistration {
pub ephemeral: bool,
pub cluster_name: String,
pub weight: f64,
}Expand description
Nacos 注册专用属性,不用于其他后端。
Fields§
§ephemeral: bool是否发布 Nacos 临时实例,由客户端维持其存活。
cluster_name: StringNacos 实例所属集群名称。
weight: f64Nacos 实例选择权重。
Trait Implementations§
Source§impl Clone for NacosRegistration
impl Clone for NacosRegistration
Source§impl Default for NacosRegistration
impl Default for NacosRegistration
Source§impl<'de> Deserialize<'de> for NacosRegistrationwhere
NacosRegistration: Default,
impl<'de> Deserialize<'de> for NacosRegistrationwhere
NacosRegistration: Default,
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 NacosRegistration
impl Freeze for NacosRegistration
impl Move for NacosRegistration
impl RefUnwindSafe for NacosRegistration
impl Send for NacosRegistration
impl Sync for NacosRegistration
impl Unpin for NacosRegistration
impl UnsafeUnpin for NacosRegistration
impl UnwindSafe for NacosRegistration
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