[−][src]Struct jenkins_api::JenkinsBuilder
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
Auto Trait Implementations
impl Send for JenkinsBuilder
impl Unpin for JenkinsBuilder
impl Sync for JenkinsBuilder
impl UnwindSafe for JenkinsBuilder
impl RefUnwindSafe for JenkinsBuilder
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,