Struct wasmer_api::backend::BackendClient
source · pub struct BackendClient { /* private fields */ }
Implementations§
source§impl BackendClient
impl BackendClient
pub fn with_client(client: Client, graphql_endpoint: Url) -> Self
pub fn new(graphql_endpoint: Url) -> Self
pub fn with_auth_token(self, auth_token: String) -> Self
pub async fn run_graphql<ResponseData, Vars>( &self, operation: Operation<ResponseData, Vars> ) -> Result<ResponseData, Error>where Vars: Serialize, ResponseData: DeserializeOwned + 'static,
pub fn graphql_endpoint(&self) -> &Url
pub fn auth_token(&self) -> Option<&str>
Trait Implementations§
source§impl Clone for BackendClient
impl Clone for BackendClient
source§fn clone(&self) -> BackendClient
fn clone(&self) -> BackendClient
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for BackendClient
impl Send for BackendClient
impl Sync for BackendClient
impl Unpin for BackendClient
impl !UnwindSafe for BackendClient
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