Struct bollard::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<ServiceSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServiceSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ServiceSpec
impl PartialEq for ServiceSpec
source§impl Serialize for ServiceSpec
impl Serialize for ServiceSpec
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ServiceSpec
Auto Trait Implementations§
impl Freeze for ServiceSpec
impl RefUnwindSafe for ServiceSpec
impl Send for ServiceSpec
impl Sync for ServiceSpec
impl Unpin for ServiceSpec
impl UnwindSafe for ServiceSpec
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)