ServiceInstance

Trait ServiceInstance 

Source
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§

Source

fn get_instance_id(&self) -> String

Returns the unique instance ID as registered.

Source

fn get_service_id(&self) -> String

Returns the service ID as registered

Source

fn get_host(&self) -> String

Returns hostname of the registered service

Source

fn get_port(&self) -> u32

Returns port of the registered service

Source

fn is_secure(&self) -> bool

Returns whether the registered service is secure

Source

fn get_uri(&self) -> String

Returns service universal resource identifier

Source

fn get_scheme(&self) -> String

Returns the scheme of the service.

Source

fn get_metadata(&self) -> HashMap<String, String>

Returns the key / value pair associated with the service id.

Source

fn get_tags(&self) -> Vec<String>

Returns the key / value pair associated with the service id.

Source

fn get_status(&self) -> String

Returns returns service instance health status.

Source

fn get_node_id(&self) -> String

Returns service instance cluster node ID

Source

fn get_state(self) -> ServiceInstanceState

Returns service instance state

Implementors§