Struct gitlab::GitlabBuilder
source · pub struct GitlabBuilder { /* private fields */ }
Implementations§
source§impl GitlabBuilder
impl GitlabBuilder
sourcepub fn new<H, T>(host: H, token: T) -> Selfwhere
H: Into<String>,
T: Into<String>,
pub fn new<H, T>(host: H, token: T) -> Selfwhere
H: Into<String>,
T: Into<String>,
Create a new Gitlab API client builder.
sourcepub fn new_unauthenticated<H>(host: H) -> Selfwhere
H: Into<String>,
pub fn new_unauthenticated<H>(host: H) -> Selfwhere
H: Into<String>,
Create a new unauthenticated Gitlab API client builder.
sourcepub fn insecure(&mut self) -> &mut Self
pub fn insecure(&mut self) -> &mut Self
Switch to an insecure protocol (http instead of https).
pub fn cert_insecure(&mut self) -> &mut Self
sourcepub fn oauth2_token(&mut self) -> &mut Self
pub fn oauth2_token(&mut self) -> &mut Self
Switch to using an OAuth2 token instead of a personal access token
sourcepub fn client_identity_from_der(
&mut self,
der: &[u8],
password: &str
) -> &mut Self
pub fn client_identity_from_der(
&mut self,
der: &[u8],
password: &str
) -> &mut Self
Authenticate to Gitlab with the provided DER-formatted PKCS#12 archive.
sourcepub fn client_identity_from_pem(&mut self, pem: &[u8]) -> &mut Self
pub fn client_identity_from_pem(&mut self, pem: &[u8]) -> &mut Self
Authenticate to Gitlab with the provided PEM-encoded private key and certificate.