[][src]Struct jenkins_api::job::builder::JobBuilder

pub struct JobBuilder<'a, 'b, 'c, 'd> { /* fields omitted */ }

Helper to build a job

Implementations

impl<'a, 'b, 'c, 'd> JobBuilder<'a, 'b, 'c, 'd>[src]

pub fn send(self) -> Result<ShortQueueItem>[src]

Trigger the build

pub fn with_delay(self, delay_sec: u32) -> Self[src]

Add a delay before the job will be built

pub fn remotely_with_token_and_cause(
    self,
    token: &'d str,
    cause: Option<&'c str>
) -> Result<Self>
[src]

Trigger the build remotely with a token and a cause

Errors

This methods will return an error if building remotely a build with parameters

pub fn with_parameters<T: Serialize>(self, parameters: &T) -> Result<Self>[src]

Build with parameters

Supported parameters type: Boolean, Choice, Multi-line string, Password, Run, String

Unsupported parameters type: File, Credentials

Errors

If used on a Job without parameters, sending this build will return an Error::IllegalState

If used with invalid parameters type / value, sending this build will return an Error::IllegalArgument

This methods will return an error if serializing parameters fails, or if passing parameters to a remote build.

Trait Implementations

impl<'a, 'b, 'c, 'd> Debug for JobBuilder<'a, 'b, 'c, 'd>[src]

Auto Trait Implementations

impl<'a, 'b, 'c, 'd> !RefUnwindSafe for JobBuilder<'a, 'b, 'c, 'd>

impl<'a, 'b, 'c, 'd> Send for JobBuilder<'a, 'b, 'c, 'd>

impl<'a, 'b, 'c, 'd> Sync for JobBuilder<'a, 'b, 'c, 'd>

impl<'a, 'b, 'c, 'd> Unpin for JobBuilder<'a, 'b, 'c, 'd>

impl<'a, 'b, 'c, 'd> !UnwindSafe for JobBuilder<'a, 'b, 'c, 'd>

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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.