pub struct RegistrationPlan {
pub id: String,
pub service: String,
pub instance: Instance,
pub attributes: BTreeMap<String, String>,
}Expand description
冻结的注册事实。字段由宿主解析完毕,重试不生成另一实例身份。
Fields§
§id: String注册目标的本地唯一标识。
service: String注册目标的逻辑服务名。
instance: Instance本次发布的地址、端口与实例属性。
attributes: BTreeMap<String, String>后端专用注册参数,不与中性 metadata 混用。
Trait Implementations§
Source§impl Clone for RegistrationPlan
impl Clone for RegistrationPlan
Source§fn clone(&self) -> RegistrationPlan
fn clone(&self) -> RegistrationPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Forget for RegistrationPlan
impl Freeze for RegistrationPlan
impl Move for RegistrationPlan
impl RefUnwindSafe for RegistrationPlan
impl Send for RegistrationPlan
impl Sync for RegistrationPlan
impl Unpin for RegistrationPlan
impl UnsafeUnpin for RegistrationPlan
impl UnwindSafe for RegistrationPlan
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