pub trait ServiceInstance {
// Required methods
fn get_instance_id(&self) -> String;
fn get_service_id(&self) -> String;
fn get_host(&self) -> String;
fn get_port(&self) -> u32;
fn is_secure(&self) -> bool;
fn get_uri(&self) -> String;
fn get_scheme(&self) -> String;
fn get_metadata(&self) -> HashMap<String, String>;
fn get_tags(&self) -> Vec<String>;
fn get_status(&self) -> String;
fn get_node_id(&self) -> String;
fn get_state(self) -> ServiceInstanceState;
}Expand description
§ServiceInstance
Struct for service instance
Required Methods§
Sourcefn get_instance_id(&self) -> String
fn get_instance_id(&self) -> String
Returns the unique instance ID as registered.
Sourcefn get_service_id(&self) -> String
fn get_service_id(&self) -> String
Returns the service ID as registered
Sourcefn get_scheme(&self) -> String
fn get_scheme(&self) -> String
Returns the scheme of the service.
Sourcefn get_metadata(&self) -> HashMap<String, String>
fn get_metadata(&self) -> HashMap<String, String>
Returns the key / value pair associated with the service id.
Returns the key / value pair associated with the service id.
Sourcefn get_status(&self) -> String
fn get_status(&self) -> String
Returns returns service instance health status.
Sourcefn get_node_id(&self) -> String
fn get_node_id(&self) -> String
Returns service instance cluster node ID
Sourcefn get_state(self) -> ServiceInstanceState
fn get_state(self) -> ServiceInstanceState
Returns service instance state