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>,
/* 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: 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§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CommonJob
impl<'de> Deserialize<'de> for CommonJob
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
Source§impl Job for CommonJob
impl Job for CommonJob
Source§fn enable(&self, jenkins_client: &Jenkins) -> Result<()>
fn enable(&self, jenkins_client: &Jenkins) -> Result<()>
Enable a
Job
. It may need to be refreshed as it may have been updatedSource§fn disable(&self, jenkins_client: &Jenkins) -> Result<()>
fn disable(&self, jenkins_client: &Jenkins) -> Result<()>
Disable a
Job
. It may need to be refreshed as it may have been updatedSource§fn add_to_view<'a, V>(
&self,
jenkins_client: &Jenkins,
view_name: V,
) -> Result<()>
fn add_to_view<'a, V>( &self, jenkins_client: &Jenkins, view_name: V, ) -> Result<()>
Add this job to the view
view_name
Auto Trait Implementations§
impl Freeze for CommonJob
impl RefUnwindSafe for CommonJob
impl Send for CommonJob
impl Sync for CommonJob
impl Unpin for CommonJob
impl UnwindSafe for CommonJob
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