[][src]Struct gitlab_ci_parser::Job

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>>,
}

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>>

Methods

impl Job[src]

pub fn get_merged_variables(&self) -> BTreeMap<String, String>[src]

Returns the consolidated local variables based on all extends.

Trait Implementations

impl Debug for Job[src]

impl<'de> Deserialize<'de> for Job[src]

impl PartialEq<Job> for Job[src]

impl Serialize for Job[src]

impl StructuralPartialEq for Job[src]

Auto Trait Implementations

impl !RefUnwindSafe for Job

impl !Send for Job

impl !Sync for Job

impl Unpin for Job

impl !UnwindSafe for Job

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.