pub struct Service {
pub name: String,
pub instance_name: String,
pub binding_name: String,
pub credentials: Credentials,
pub label: String,
}Expand description
The high level service information for a service bounded to an application. Multiple services of the same type can be bounded to an application (e.g. multiple Config Servers).
Fields§
§name: StringThe name of the service.
instance_name: StringThe instance name of the service.
binding_name: StringThe name the service is bounded as.
credentials: CredentialsThe credentials of the service.
label: StringThe label associated with the service.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Service
impl<'de> Deserialize<'de> for Service
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnwindSafe for Service
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