pub struct SidecarTask {
pub kill_signal: Option<String>,
pub driver: String,
pub user: String,
pub resources: Option<Resources>,
pub meta: HashMap<String, String>,
pub kill_timeout: Option<TimeDelta>,
pub log_config: Option<LogConfig>,
pub shutdown_delay: Option<TimeDelta>,
pub name: String,
pub config: HashMap<String, Value>,
pub env: HashMap<String, String>,
pub volume_mounts: Vec<VolumeMount>,
}
Expand description
SidecarTask represents a subset of Task fields that can be set to override the fields of the Task generated for the sidecar
This struct was generated based on the Go types of the official Nomad API.
Fields§
§kill_signal: Option<String>
§driver: String
§user: String
§resources: Option<Resources>
§meta: HashMap<String, String>
§kill_timeout: Option<TimeDelta>
§log_config: Option<LogConfig>
§shutdown_delay: Option<TimeDelta>
§name: String
§config: HashMap<String, Value>
§env: HashMap<String, String>
§volume_mounts: Vec<VolumeMount>
Trait Implementations§
Source§impl Clone for SidecarTask
impl Clone for SidecarTask
Source§fn clone(&self) -> SidecarTask
fn clone(&self) -> SidecarTask
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 SidecarTask
impl Debug for SidecarTask
Source§impl Default for SidecarTask
impl Default for SidecarTask
Source§fn default() -> SidecarTask
fn default() -> SidecarTask
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SidecarTask
impl<'de> Deserialize<'de> for SidecarTask
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 for SidecarTask
impl PartialEq for SidecarTask
Source§impl Serialize for SidecarTask
impl Serialize for SidecarTask
impl StructuralPartialEq for SidecarTask
Auto Trait Implementations§
impl Freeze for SidecarTask
impl RefUnwindSafe for SidecarTask
impl Send for SidecarTask
impl Sync for SidecarTask
impl Unpin for SidecarTask
impl UnwindSafe for SidecarTask
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