Enum jenkins_api::action::Cause
[−]
[src]
pub enum Cause { UserIdCause { short_description: String, user_id: String, user_name: String, }, RemoteCause { short_description: String, addr: String, note: Option<String>, }, UpstreamCause { short_description: String, upstream_build: u32, upstream_project: String, upstream_url: String, }, TimerTriggerCause { short_description: String, }, SCMTriggerCause { short_description: String, }, Unknown { class: Option<String>, }, }
A Cause
on a CauseAction
Variants
UserIdCause
Caused by a user
Fields of UserIdCause
short_description: String | Short description of the cause |
user_id: String | User ID responsible |
user_name: String | User name responsible |
RemoteCause
Caused remotely
Fields of RemoteCause
short_description: String | Short description of the cause |
addr: String | addr that triggered |
note: Option<String> | Note provided when triggering the build |
UpstreamCause
Caused by another project
Fields of UpstreamCause
short_description: String | Short description of the cause |
upstream_build: u32 |
|
upstream_project: String |
|
upstream_url: String | URL to the upstream |
TimerTriggerCause
Caused by a timer
Fields of TimerTriggerCause
short_description: String | Short description of the cause |
SCMTriggerCause
Caused by a SCM change
Fields of SCMTriggerCause
short_description: String | Short description of the cause |
Unknown
Default case used when none other matched
Fields of Unknown
class: Option<String> | _class provided by Jenkins |
Trait Implementations
impl Debug for Cause
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'de> Deserialize<'de> for Cause
[src]
fn deserialize<D>(deserializer: D) -> Result<Cause, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more