pub struct Job {
pub stage: Option<StageName>,
pub before_script: Option<Vec<Script>>,
pub script: Option<Vec<Script>>,
pub variables: Option<BTreeMap<VarName, VarValue>>,
pub extends: Option<JobName>,
pub extends_job: Option<Rc<Job>>,
}Expand description
All Jobs in the same stage tend to be run at once.
Fields§
§stage: Option<StageName>§before_script: Option<Vec<Script>>§script: Option<Vec<Script>>§variables: Option<BTreeMap<VarName, VarValue>>Even though variables could be None, they could be defined in extends_job.variables (or globally)
extends: Option<JobName>§extends_job: Option<Rc<Job>>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Job
impl<'de> Deserialize<'de> for Job
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
impl StructuralPartialEq for Job
Auto Trait Implementations§
impl Freeze for Job
impl RefUnwindSafe for Job
impl !Send for Job
impl !Sync for Job
impl Unpin for Job
impl UnwindSafe for Job
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