pub struct Job {Show 20 fields
pub job: Option<String>,
pub deployment: Option<String>,
pub display_name: Option<String>,
pub depends_on: DependsOn,
pub condition: Option<String>,
pub strategy: Option<Strategy>,
pub pool: Option<Pool>,
pub container: Option<ContainerRef>,
pub services: HashMap<String, ContainerRef>,
pub variables: Vec<Variable>,
pub steps: Vec<Step>,
pub timeout_in_minutes: Option<u32>,
pub cancel_timeout_in_minutes: Option<u32>,
pub continue_on_error: BoolOrExpression,
pub workspace: Option<Workspace>,
pub uses: Option<UsesSpec>,
pub template: Option<String>,
pub parameters: HashMap<String, Value>,
pub environment: Option<Environment>,
pub has_template_directives: bool,
}Fields§
§job: Option<String>Job identifier (mutually exclusive with deployment)
deployment: Option<String>Deployment job identifier
display_name: Option<String>Display name in UI
depends_on: DependsOnDependency on other jobs
condition: Option<String>Condition for running this job
strategy: Option<Strategy>Execution strategy (matrix, parallel)
pool: Option<Pool>Agent pool for this job
container: Option<ContainerRef>Container to run the job in
services: HashMap<String, ContainerRef>Service containers
variables: Vec<Variable>Job-level variables
steps: Vec<Step>Steps to execute
timeout_in_minutes: Option<u32>Job timeout
cancel_timeout_in_minutes: Option<u32>Cancel timeout
continue_on_error: BoolOrExpressionContinue pipeline on error
workspace: Option<Workspace>Workspace settings
uses: Option<UsesSpec>Uses statement (template reference)
template: Option<String>Template reference
parameters: HashMap<String, Value>Template parameters
environment: Option<Environment>Deployment environment (for deployment jobs)
has_template_directives: boolWhether the steps list contained compile-time template directives (${{ if }}, ${{ each }}) that were dropped during deserialization. When true, the validator should not require steps to be non-empty.
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
Auto Trait Implementations§
impl Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more