Struct jenkins_api::job::CommonJob [−][src]
pub struct CommonJob { 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>, // some fields omitted }
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
Methods
impl CommonJob
[src]
impl CommonJob
pub fn as_variant<T: Class + Job>(&self) -> Result<T, Error> where
T: Deserialize<'de>,
[src]
pub fn as_variant<T: Class + Job>(&self) -> Result<T, Error> where
T: Deserialize<'de>,
Read the object as one of it's specialization implementing $trait
Trait Implementations
impl Debug for CommonJob
[src]
impl Debug for CommonJob
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for CommonJob
[src]
impl Clone for CommonJob
fn clone(&self) -> CommonJob
[src]
fn clone(&self) -> CommonJob
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Job for CommonJob
[src]
impl Job for CommonJob
fn url(&self) -> &str
[src]
fn url(&self) -> &str
get the url of a Job
fn name(&self) -> &str
[src]
fn name(&self) -> &str
Get the name of the project
fn enable(&self, jenkins_client: &Jenkins) -> Result<(), Error>
[src]
fn enable(&self, jenkins_client: &Jenkins) -> Result<(), Error>
Enable a Job
. It may need to be refreshed as it may have been updated
fn disable(&self, jenkins_client: &Jenkins) -> Result<(), Error>
[src]
fn disable(&self, jenkins_client: &Jenkins) -> Result<(), Error>
Disable a Job
. It may need to be refreshed as it may have been updated
fn add_to_view<'a, V>(
&self,
jenkins_client: &Jenkins,
view_name: V
) -> Result<(), Error> where
V: Into<ViewName<'a>>,
[src]
fn add_to_view<'a, V>(
&self,
jenkins_client: &Jenkins,
view_name: V
) -> Result<(), Error> where
V: Into<ViewName<'a>>,
Add this job to the view view_name
fn remove_from_view<'a, V>(
&self,
jenkins_client: &Jenkins,
view_name: V
) -> Result<(), Error> where
V: Into<ViewName<'a>>,
[src]
fn remove_from_view<'a, V>(
&self,
jenkins_client: &Jenkins,
view_name: V
) -> Result<(), Error> where
V: Into<ViewName<'a>>,
Remove this job from the view view_name