[−][src]Struct gitlab::GitlabBuilder
Methods
impl GitlabBuilder
[src]
pub fn new<H, T>(host: H, token: T) -> Self where
H: ToString,
T: ToString,
[src]
H: ToString,
T: ToString,
Create a new Gitlab API client builder.
pub fn insecure(&mut self) -> &mut Self
[src]
Switch to an insecure protocol (http instead of https).
pub fn cert_insecure(&mut self) -> &mut Self
[src]
pub fn oauth2_token(&mut self) -> &mut Self
[src]
Switch to using an OAuth2 token instead of a personal access token
pub fn build(&self) -> Result<Gitlab, GitlabError>
[src]
Auto Trait Implementations
impl RefUnwindSafe for GitlabBuilder
impl Send for GitlabBuilder
impl Sync for GitlabBuilder
impl Unpin for GitlabBuilder
impl UnwindSafe for GitlabBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,