pub struct GetInstance {
pub ip: String,
pub port: String,
pub namespaceId: Option<String>,
pub serviceName: String,
pub groupName: Option<String>,
pub cluster: Option<String>,
pub healthyOnly: bool,
pub ephemeral: Option<bool>,
}Fields§
§ip: String服务实例IP
port: String服务实例port
namespaceId: Option<String>命名空间ID
serviceName: String服务名
groupName: Option<String>分组名
cluster: Option<String>集群名称
healthyOnly: bool是否健康
ephemeral: Option<bool>是否临时实例
Implementations§
Source§impl GetInstance
impl GetInstance
pub async fn get_instance(&self) -> Result<Instance>
Trait Implementations§
Source§impl Clone for GetInstance
impl Clone for GetInstance
Source§fn clone(&self) -> GetInstance
fn clone(&self) -> GetInstance
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 moreSource§impl Debug for GetInstance
impl Debug for GetInstance
Source§impl Default for GetInstance
impl Default for GetInstance
Source§fn default() -> GetInstance
fn default() -> GetInstance
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetInstance
impl<'de> Deserialize<'de> for GetInstance
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 ParseUrl for GetInstance
impl ParseUrl for GetInstance
Source§impl Serialize for GetInstance
impl Serialize for GetInstance
Auto Trait Implementations§
impl Freeze for GetInstance
impl RefUnwindSafe for GetInstance
impl Send for GetInstance
impl Sync for GetInstance
impl Unpin for GetInstance
impl UnsafeUnpin for GetInstance
impl UnwindSafe for GetInstance
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