pub struct NomadTask {
pub name: String,
pub driver: String,
pub config: HashMap<String, Value>,
pub resources: NomadResources,
pub env: Option<HashMap<String, String>>,
pub meta: Option<HashMap<String, String>>,
}Expand description
Nomad task
Fields§
§name: String§driver: String§config: HashMap<String, Value>§resources: NomadResources§env: Option<HashMap<String, String>>§meta: Option<HashMap<String, String>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for NomadTask
impl<'de> Deserialize<'de> for NomadTask
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
Auto Trait Implementations§
impl Freeze for NomadTask
impl RefUnwindSafe for NomadTask
impl Send for NomadTask
impl Sync for NomadTask
impl Unpin for NomadTask
impl UnwindSafe for NomadTask
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