pub struct Client { /* private fields */ }Expand description
Client for TestQuorum API
Version: 0.1.124
Implementations§
Source§impl Client
impl Client
Sourcepub fn new(baseurl: &str, inner: Client) -> Self
pub fn new(baseurl: &str, inner: Client) -> Self
Create a new client.
baseurl is the base URL provided to the internal
reqwest::Client, and should include a scheme and hostname,
as well as port and a path stem if applicable.
Sourcepub fn new_with_client(baseurl: &str, client: Client, inner: Client) -> Self
pub fn new_with_client(baseurl: &str, client: Client, inner: Client) -> Self
Construct a new client with an existing reqwest::Client,
allowing more control over its configuration.
baseurl is the base URL provided to the internal
reqwest::Client, and should include a scheme and hostname,
as well as port and a path stem if applicable.
Source§impl Client
impl Client
Sourcepub async fn logout<'a>(&'a self) -> Result<ResponseValue<()>, Error<()>>
pub async fn logout<'a>(&'a self) -> Result<ResponseValue<()>, Error<()>>
Sends a POST request to /auth/logout
Sourcepub async fn session_info<'a>(
&'a self,
) -> Result<ResponseValue<SessionResponse>, Error<()>>
pub async fn session_info<'a>( &'a self, ) -> Result<ResponseValue<SessionResponse>, Error<()>>
Sends a GET request to /auth/session
Sourcepub async fn health<'a>(&'a self) -> Result<ResponseValue<()>, Error<()>>
pub async fn health<'a>(&'a self) -> Result<ResponseValue<()>, Error<()>>
Sends a GET request to /health/
Sourcepub async fn get_quote<'a>(
&'a self,
) -> Result<ResponseValue<QuoteResponse>, Error<()>>
pub async fn get_quote<'a>( &'a self, ) -> Result<ResponseValue<QuoteResponse>, Error<()>>
Sends a GET request to /quote/
Sourcepub async fn list_repos<'a>(
&'a self,
) -> Result<ResponseValue<Vec<RepoResponse>>, Error<()>>
pub async fn list_repos<'a>( &'a self, ) -> Result<ResponseValue<Vec<RepoResponse>>, Error<()>>
Sends a GET request to /repos/
Trait Implementations§
Source§impl ClientHooks<Client> for &Client
impl ClientHooks<Client> for &Client
Source§async fn pre<E>(
&self,
request: &mut Request,
info: &OperationInfo,
) -> Result<(), Error<E>>
async fn pre<E>( &self, request: &mut Request, info: &OperationInfo, ) -> Result<(), Error<E>>
Runs prior to the execution of the request. This may be used to modify
the request before it is transmitted.
Source§impl ClientInfo<Client> for Client
impl ClientInfo<Client> for Client
Source§fn api_version() -> &'static str
fn api_version() -> &'static str
Get the version of this API. Read more
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more