pub struct SidecarTask {
pub env: HashMap<String, String>,
pub resources: Option<Resources>,
pub kill_timeout: Option<TimeDelta>,
pub kill_signal: Option<String>,
pub volume_mounts: Vec<VolumeMount>,
pub name: String,
pub user: String,
pub meta: HashMap<String, String>,
pub log_config: Option<LogConfig>,
pub shutdown_delay: Option<TimeDelta>,
pub driver: String,
pub config: HashMap<String, Value>,
}
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 client.
Fields§
§env: HashMap<String, String>
§resources: Option<Resources>
§kill_timeout: Option<TimeDelta>
§kill_signal: Option<String>
§volume_mounts: Vec<VolumeMount>
§name: String
§user: String
§meta: HashMap<String, String>
§log_config: Option<LogConfig>
§shutdown_delay: Option<TimeDelta>
§driver: String
§config: HashMap<String, Value>
Implementations§
Source§impl SidecarTask
impl SidecarTask
pub fn builder() -> SidecarTaskBuilder
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<'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