Struct jenkins_api::JenkinsBuilder [−][src]
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]
impl JenkinsBuilder
pub fn new(url: &str) -> Self
[src]
pub fn new(url: &str) -> Self
Create a new builder with Jenkins url
pub fn build(self) -> Result<Jenkins, Error>
[src]
pub fn build(self) -> Result<Jenkins, Error>
Build the Jenkins client
pub fn with_user(self, login: &str, password: Option<&str>) -> Self
[src]
pub fn with_user(self, login: &str, password: Option<&str>) -> Self
Specify the user to use for authorizing queries
pub fn disable_csrf(self) -> Self
[src]
pub fn disable_csrf(self) -> Self
Disable CSRF in crumbs used for post queries
pub fn with_depth(self, depth: u8) -> Self
[src]
pub fn with_depth(self, depth: u8) -> Self
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]
impl Debug for JenkinsBuilder
Auto Trait Implementations
impl Send for JenkinsBuilder
impl Send for JenkinsBuilder
impl Sync for JenkinsBuilder
impl Sync for JenkinsBuilder