[][src]Struct jenkins_api::job::CommonJob

pub struct CommonJob {
    pub name: String,
    pub display_name: String,
    pub full_display_name: Option<String>,
    pub full_name: Option<String>,
    pub display_name_or_null: Option<String>,
    pub url: String,
    pub actions: Vec<Option<CommonAction>>,
    pub buildable: bool,
    pub last_build: Option<ShortBuild<CommonBuild>>,
    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: Option<String>

Full Display Name of the job

full_name: Option<String>

Full Name of the job

display_name_or_null: Option<String>

Display Name of the job

url: String

URL for the job

actions: Vec<Option<CommonAction>>

Actions of a job

buildable: bool

Is the job buildable?

last_build: Option<ShortBuild<CommonBuild>>

Link to the last build

class: Option<String>

_class provided by Jenkins

Implementations

impl CommonJob[src]

pub fn as_variant<T: Class + Job>(&self) -> Result<T, Error> where
    T: Deserialize<'de>, 
[src]

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

Trait Implementations

impl Clone for CommonJob[src]

impl Debug for CommonJob[src]

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

impl Job for CommonJob[src]

impl Serialize for CommonJob[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.