Struct rust_cloud_discovery::ServiceInstance [−][src]
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]
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
Trait Implementations
impl Clone for ServiceInstance
[src]
fn clone(&self) -> ServiceInstance
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ServiceInstance
[src]
impl<'de> Deserialize<'de> for ServiceInstance
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for ServiceInstance
[src]
Auto Trait Implementations
impl RefUnwindSafe for ServiceInstance
impl Send for ServiceInstance
impl Sync for ServiceInstance
impl Unpin for ServiceInstance
impl UnwindSafe for ServiceInstance
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,