Struct rust_cloud_discovery::ServiceInstance[][src]

pub struct ServiceInstance { /* fields omitted */ }

Represents an instance

Implementations

impl ServiceInstance[src]

pub fn instance_id(&self) -> &Option<String>[src]

pub fn service_id(&self) -> &Option<String>[src]

pub fn host(&self) -> &Option<String>[src]

pub fn port(&self) -> &Option<usize>[src]

pub fn secure(&self) -> &bool[src]

pub fn uri(&self) -> &Option<String>[src]

pub fn metadata(&self) -> &HashMap<String, String>[src]

pub fn scheme(&self) -> &Option<String>[src]

impl ServiceInstance[src]

pub fn new(
    instance_id: Option<String>,
    service_id: Option<String>,
    host: Option<String>,
    port: Option<usize>,
    secure: bool,
    uri: Option<String>,
    metadata: HashMap<String, String>,
    scheme: Option<String>
) -> Self
[src]

Trait Implementations

impl Clone for ServiceInstance[src]

impl Debug for ServiceInstance[src]

impl<'de> Deserialize<'de> for ServiceInstance[src]

impl Serialize for ServiceInstance[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.