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
sourceimpl AsyncGitlab
impl AsyncGitlab
sourcepub 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
sourceimpl AsyncClient for AsyncGitlab
impl AsyncClient for AsyncGitlab
sourcefn 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.
sourceimpl Clone for AsyncGitlab
impl Clone for AsyncGitlab
sourcefn clone(&self) -> AsyncGitlab
fn clone(&self) -> AsyncGitlab
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AsyncGitlab
impl Debug for AsyncGitlab
sourceimpl RestClient for AsyncGitlab
impl RestClient for AsyncGitlab
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more