pub struct InstanceRegisterParam {Show 13 fields
pub ip: Arc<String>,
pub port: u32,
pub weight: f32,
pub enabled: bool,
pub healthy: bool,
pub ephemeral: bool,
pub metadata: Arc<HashMap<String, String>>,
pub namespace_id: Arc<String>,
pub group_name: Arc<String>,
pub service_name: Arc<String>,
pub cluster_name: Option<String>,
pub app_name: Option<String>,
pub last_modified_millis: i64,
}Expand description
实例注册参数
Fields§
§ip: Arc<String>§port: u32§weight: f32§enabled: bool§healthy: bool§ephemeral: bool§metadata: Arc<HashMap<String, String>>§namespace_id: Arc<String>§group_name: Arc<String>§service_name: Arc<String>§cluster_name: Option<String>§app_name: Option<String>§last_modified_millis: i64Trait Implementations§
Source§impl Clone for InstanceRegisterParam
impl Clone for InstanceRegisterParam
Source§fn clone(&self) -> InstanceRegisterParam
fn clone(&self) -> InstanceRegisterParam
Returns a duplicate 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 InstanceRegisterParam
impl Debug for InstanceRegisterParam
Source§impl Default for InstanceRegisterParam
impl Default for InstanceRegisterParam
Source§impl<'de> Deserialize<'de> for InstanceRegisterParam
impl<'de> Deserialize<'de> for InstanceRegisterParam
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
Source§impl From<&Instance> for InstanceRegisterParam
impl From<&Instance> for InstanceRegisterParam
Source§impl From<InstanceRegisterParam> for Instance
impl From<InstanceRegisterParam> for Instance
Source§fn from(param: InstanceRegisterParam) -> Self
fn from(param: InstanceRegisterParam) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InstanceRegisterParam
impl RefUnwindSafe for InstanceRegisterParam
impl Send for InstanceRegisterParam
impl Sync for InstanceRegisterParam
impl Unpin for InstanceRegisterParam
impl UnwindSafe for InstanceRegisterParam
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request