pub struct ServiceInstanceOptions {
pub instance_id: String,
pub node_id: Option<String>,
pub service_id: String,
pub host: String,
pub status: ServiceStatus,
pub tags: Option<Vec<String>>,
pub port: u32,
pub secure: bool,
pub state: Option<ServiceInstanceState>,
pub metadata: Option<HashMap<String, String>>,
}Expand description
§ServiceInstance
Fields§
§instance_id: Stringinstance_id the id of the instance.
node_id: Option<String>Node the id of the instance.
service_id: Stringservice_id the id of the service.
host: Stringhost where the service instance can be found.
status: ServiceStatusservice instance status.
service tags.
port: u32port the port on which the service is running.
secure: boolsecure indicates whether or not the connection needs to be secure.
state: Option<ServiceInstanceState>node instance state.
metadata: Option<HashMap<String, String>>metadata optional a map containing metadata.
Trait Implementations§
Source§impl Clone for ServiceInstanceOptions
impl Clone for ServiceInstanceOptions
Source§fn clone(&self) -> ServiceInstanceOptions
fn clone(&self) -> ServiceInstanceOptions
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 Default for ServiceInstanceOptions
impl Default for ServiceInstanceOptions
Source§fn default() -> ServiceInstanceOptions
fn default() -> ServiceInstanceOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ServiceInstanceOptions
impl RefUnwindSafe for ServiceInstanceOptions
impl Send for ServiceInstanceOptions
impl Sync for ServiceInstanceOptions
impl Unpin for ServiceInstanceOptions
impl UnwindSafe for ServiceInstanceOptions
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