Struct apollo_client::open::OpenApiClient [−][src]
pub struct OpenApiClient { /* fields omitted */ }
This is supported on crate feature
open
only.Expand description
Created by OpenApiClientBuilder::build.
Implementations
pub async fn execute<R: PerformResponse>(
&self,
request: impl PerformOpenRequest<Response = R>
) -> ApolloClientResult<R>
pub async fn execute<R: PerformResponse>(
&self,
request: impl PerformOpenRequest<Response = R>
) -> ApolloClientResult<R>
Execute open Api request.
Example
use std::error::Error; use apollo_client::open::{OpenApiClient, requests::OpenAppRequest}; #[tokio::main] async fn main() -> Result<(), Box<dyn Error>> { let client: OpenApiClient = todo!(); let _responses = client .execute( OpenAppRequest::builder() .app_ids(vec!["SampleApp".into()]) .build(), ) .await?; Ok(()) }
Auto Trait Implementations
impl !RefUnwindSafe for OpenApiClient
impl Send for OpenApiClient
impl Sync for OpenApiClient
impl Unpin for OpenApiClient
impl !UnwindSafe for OpenApiClient