Struct jenkins_api::job::ShortJob
source · pub struct ShortJob<T: Job = CommonJob> {
pub name: String,
pub url: String,
pub color: BallColor,
/* private fields */
}
Expand description
Short Job that is used in lists and links from other structs
Fields§
§name: String
Name of the job
url: String
URL for the job
color: BallColor
Ball Color for the status of the job
Implementations§
source§impl<T> ShortJob<T>where
T: Job,
for<'de> T: Deserialize<'de>,
impl<T> ShortJob<T>where
T: Job,
for<'de> T: Deserialize<'de>,
sourcepub fn get_full_job(&self, jenkins_client: &Jenkins) -> Result<T, Error>
pub fn get_full_job(&self, jenkins_client: &Jenkins) -> Result<T, Error>
Get the full details of a Job
matching the ShortJob
Trait Implementations§
source§impl<'de, T: Job> Deserialize<'de> for ShortJob<T>
impl<'de, T: Job> Deserialize<'de> for ShortJob<T>
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