[][src]Struct jenkins_api::JenkinsBuilder

pub struct JenkinsBuilder { /* fields omitted */ }

Builder for Jenkins client

    let jenkins = JenkinsBuilder::new("http://localhost:8080")
        .with_user("user", Some("password"))
        .build()
        .unwrap();

Methods

impl JenkinsBuilder[src]

pub fn new(url: &str) -> Self[src]

Create a new builder with Jenkins url

pub fn build(self) -> Result<Jenkins, Error>[src]

Build the Jenkins client

pub fn with_user(self, login: &str, password: Option<&str>) -> Self[src]

Specify the user to use for authorizing queries

pub fn disable_csrf(self) -> Self[src]

Disable CSRF in crumbs used for post queries

pub fn with_depth(self, depth: u8) -> Self[src]

Change the default depth parameters of requests made to Jenkins. It controls the amount of data in responses

Trait Implementations

impl Debug for JenkinsBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err