#[non_exhaustive]pub struct Service {
pub labels: Option<Vec<String>>,
pub name: Option<String>,
pub tags: Option<Vec<KeyValueObject>>,
pub uid: Option<String>,
pub version: Option<String>,
}Expand description
Service
The Service object describes characteristics of a service, e.g. AWS EC2.
[] Category: | Name: service
Constraints:
- at_least_one:
[name,uid]
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.labels: Option<Vec<String>>Labels
The list of labels associated with the service.
optional
name: Option<String>Name
The name of the service.
recommended
Tags
The list of tags; {key:value} pairs associated to the service.
optional
uid: Option<String>Unique ID
The unique identifier of the service.
recommended
version: Option<String>Version
The version of the service.
recommended
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
impl StructuralPartialEq for Service
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