Struct gitlab::AsyncGitlab
source · [−]pub struct AsyncGitlab { /* private fields */ }
Expand description
A representation of the asynchronous Gitlab API for a single user.
Separate users should use separate instances of this.
Implementations
pub async 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 async 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
fn rest_async<'life0, 'async_trait>(
&'life0 self,
request: Builder,
body: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<HttpResponse<Bytes>, ApiError<<Self as RestClient>::Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn rest_async<'life0, 'async_trait>(
&'life0 self,
request: Builder,
body: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<HttpResponse<Bytes>, ApiError<<Self as RestClient>::Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Send a REST query asynchronously.
Auto Trait Implementations
impl !RefUnwindSafe for AsyncGitlab
impl Send for AsyncGitlab
impl Sync for AsyncGitlab
impl Unpin for AsyncGitlab
impl !UnwindSafe for AsyncGitlab
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