pub struct Client { /* private fields */ }
Expand description
Client for webserver
Version: 0.1.0
Implementations§
Source§impl Client
impl Client
Sourcepub fn new(baseurl: &str) -> Self
pub fn new(baseurl: &str) -> 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) -> Self
pub fn new_with_client(baseurl: &str, client: 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.
Sourcepub fn api_version(&self) -> &'static str
pub fn api_version(&self) -> &'static str
Get the version of this API.
This string is pulled directly from the source OpenAPI document and may be in any format the API selects.
Source§impl Client
impl Client
Sourcepub async fn handlers_deploy_deploy_aws_create<'a>(
&'a self,
body: &'a DeployAwsInput,
) -> Result<ResponseValue<DeployAwsOutput>, Error<()>>
pub async fn handlers_deploy_deploy_aws_create<'a>( &'a self, body: &'a DeployAwsInput, ) -> Result<ResponseValue<DeployAwsOutput>, Error<()>>
Get instance ID from queue
Retrieves the next available EC2 instance ID from the queue.
Sends a POST
request to /deploy/aws/create
Sourcepub async fn handlers_log_log<'a>(
&'a self,
body: &'a LogInput,
) -> Result<ResponseValue<LogOutput>, Error<()>>
pub async fn handlers_log_log<'a>( &'a self, body: &'a LogInput, ) -> Result<ResponseValue<LogOutput>, Error<()>>
Get instance ID from queue
Retrieves the next available EC2 instance ID from the queue.
Sends a POST
request to /log
Sourcepub async fn handlers_create_listener_create_listener<'a>(
&'a self,
body: &'a CreateListenerInput,
) -> Result<ResponseValue<CreateListenerOutput>, Error<()>>
pub async fn handlers_create_listener_create_listener<'a>( &'a self, body: &'a CreateListenerInput, ) -> Result<ResponseValue<CreateListenerOutput>, Error<()>>
Sends a POST
request to /create-listener