Struct gitlab::Gitlab [−][src]
pub struct Gitlab { /* fields omitted */ }
Expand description
A representation of the Gitlab API for a single user.
Separate users should use separate instances of this.
Implementations
Create a new Gitlab API representation.
The token
should be a valid personal access token.
Errors out if token
is invalid.
pub fn new_insecure<H, T>(host: H, token: T) -> Result<Self, GitlabError> where
H: AsRef<str>,
T: Into<String>,
pub fn new_insecure<H, T>(host: H, token: T) -> Result<Self, GitlabError> where
H: AsRef<str>,
T: Into<String>,
Create a new non-SSL Gitlab API representation.
Errors out if token
is invalid.
pub fn with_oauth2<H, T>(host: H, token: T) -> Result<Self, GitlabError> where
H: AsRef<str>,
T: Into<String>,
pub fn with_oauth2<H, T>(host: H, token: T) -> Result<Self, GitlabError> where
H: AsRef<str>,
T: Into<String>,
Create a new Gitlab API representation.
The token
should be a valid OAuth2 token.
Errors out if token
is invalid.
pub fn with_oauth2_insecure<H, T>(
host: H,
token: T
) -> Result<Self, GitlabError> where
H: AsRef<str>,
T: Into<String>,
pub fn with_oauth2_insecure<H, T>(
host: H,
token: T
) -> Result<Self, GitlabError> where
H: AsRef<str>,
T: Into<String>,
Create a new non-SSL Gitlab API representation.
The token
should be a valid OAuth2 token.
Errors out if token
is invalid.
Create a new Gitlab API client builder.
pub fn graphql<Q>(
&self,
query: &QueryBody<Q::Variables>
) -> Result<Q::ResponseData, GitlabError> where
Q: GraphQLQuery,
Q::Variables: Debug,
for<'d> Q::ResponseData: Deserialize<'d>,
pub fn graphql<Q>(
&self,
query: &QueryBody<Q::Variables>
) -> Result<Q::ResponseData, GitlabError> where
Q: GraphQLQuery,
Q::Variables: Debug,
for<'d> Q::ResponseData: Deserialize<'d>,
Send a GraphQL query.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Gitlab
impl !UnwindSafe for Gitlab
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more