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 new_with_proxy( graphql_endpoint: Url, user_agent: &str, proxy: Option<Proxy>, ) -> 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 !Freeze for WasmerClient
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