Struct wasmer_api::WasmerClient
source · pub struct WasmerClient { /* private fields */ }
Expand description
API client for the Wasmer API.
Use the queries in [crate::queries
] to interact with the API.
Implementations§
source§impl WasmerClient
impl WasmerClient
pub fn graphql_endpoint(&self) -> &Url
pub fn auth_token(&self) -> Option<&str>
pub fn new_with_client( client: Client, graphql_endpoint: Url, user_agent: &str ) -> Result<Self, Error>
pub fn new(graphql_endpoint: Url, user_agent: &str) -> Result<Self, Error>
pub fn with_auth_token(self, auth_token: String) -> Self
Trait Implementations§
source§impl Clone for WasmerClient
impl Clone for WasmerClient
source§fn clone(&self) -> WasmerClient
fn clone(&self) -> WasmerClient
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 WasmerClient
impl Send for WasmerClient
impl Sync for WasmerClient
impl Unpin for WasmerClient
impl !UnwindSafe for WasmerClient
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