Struct jenkins_api::job::CommonJob

source ·
pub struct CommonJob {
Show 24 fields pub name: String, pub display_name: String, pub full_display_name: String, pub full_name: String, pub display_name_or_null: Option<String>, pub url: String, pub color: BallColor, pub buildable: bool, pub keep_dependencies: bool, pub next_build_number: u32, pub in_queue: bool, pub actions: Vec<Option<CommonAction>>, pub last_build: Option<ShortBuild<CommonBuild>>, pub first_build: Option<ShortBuild<CommonBuild>>, pub last_stable_build: Option<ShortBuild<CommonBuild>>, pub last_unstable_build: Option<ShortBuild<CommonBuild>>, pub last_successful_build: Option<ShortBuild<CommonBuild>>, pub last_unsuccessful_build: Option<ShortBuild<CommonBuild>>, pub last_completed_build: Option<ShortBuild<CommonBuild>>, pub last_failed_build: Option<ShortBuild<CommonBuild>>, pub builds: Vec<ShortBuild>, pub health_report: Vec<HealthReport>, pub queue_item: Option<ShortQueueItem>, pub class: Option<String>, /* private fields */
}
Expand description

A Jenkins Job

Fields§

§name: String

Name of the job

§display_name: String

Display Name of the job

§full_display_name: String

Full Display Name of the job

§full_name: String

Full Name of the job

§display_name_or_null: Option<String>

Display Name of the job

§url: String

URL for the job

§color: BallColor

Ball Color for the status of the job

§buildable: bool

Is the job buildable?

§keep_dependencies: bool

Are dependencies kept for this job?

§next_build_number: u32

Next build number

§in_queue: bool

Is this job currently in build queue

§actions: Vec<Option<CommonAction>>

Actions of a job

§last_build: Option<ShortBuild<CommonBuild>>

Link to the last build

§first_build: Option<ShortBuild<CommonBuild>>

Link to the first build

§last_stable_build: Option<ShortBuild<CommonBuild>>

Link to the last stable build

§last_unstable_build: Option<ShortBuild<CommonBuild>>

Link to the last unstable build

§last_successful_build: Option<ShortBuild<CommonBuild>>

Link to the last successful build

§last_unsuccessful_build: Option<ShortBuild<CommonBuild>>

Link to the last unsucressful build

§last_completed_build: Option<ShortBuild<CommonBuild>>

Link to the last complete build

§last_failed_build: Option<ShortBuild<CommonBuild>>

Link to the last failed build

§builds: Vec<ShortBuild>

List of builds of the job

§health_report: Vec<HealthReport>

HealthReport of the job

§queue_item: Option<ShortQueueItem>

Queue item of this job if it’s waiting

§class: Option<String>

_class provided by Jenkins

Implementations§

Read the object as one of it’s specialization implementing $trait

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
get the url of a Job
Get the name of the project
Enable a Job. It may need to be refreshed as it may have been updated
Disable a Job. It may need to be refreshed as it may have been updated
Add this job to the view view_name
Remove this job from the view view_name
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.