Struct bollard_stubs::models::ServiceSpec
source · pub struct ServiceSpec {
pub name: Option<String>,
pub labels: Option<HashMap<String, String>>,
pub task_template: Option<TaskSpec>,
pub mode: Option<ServiceSpecMode>,
pub update_config: Option<ServiceSpecUpdateConfig>,
pub rollback_config: Option<ServiceSpecRollbackConfig>,
pub networks: Option<Vec<NetworkAttachmentConfig>>,
pub endpoint_spec: Option<EndpointSpec>,
}
Expand description
User modifiable configuration for a service.
Fields§
§name: Option<String>
Name of the service.
labels: Option<HashMap<String, String>>
User-defined key/value metadata.
task_template: Option<TaskSpec>
§mode: Option<ServiceSpecMode>
§update_config: Option<ServiceSpecUpdateConfig>
§rollback_config: Option<ServiceSpecRollbackConfig>
§networks: Option<Vec<NetworkAttachmentConfig>>
Specifies which networks the service should attach to.
endpoint_spec: Option<EndpointSpec>
Trait Implementations§
source§impl Clone for ServiceSpec
impl Clone for ServiceSpec
source§fn clone(&self) -> ServiceSpec
fn clone(&self) -> ServiceSpec
Returns a copy 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 Debug for ServiceSpec
impl Debug for ServiceSpec
source§impl Default for ServiceSpec
impl Default for ServiceSpec
source§fn default() -> ServiceSpec
fn default() -> ServiceSpec
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ServiceSpec
impl<'de> Deserialize<'de> for ServiceSpec
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
source§impl PartialEq<ServiceSpec> for ServiceSpec
impl PartialEq<ServiceSpec> for ServiceSpec
source§fn eq(&self, other: &ServiceSpec) -> bool
fn eq(&self, other: &ServiceSpec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.