pub struct JupiterClient { /* private fields */ }Implementations§
Source§impl JupiterClient
impl JupiterClient
pub fn new(config: JupiterConfig) -> Result<Self, JupiterError>
pub async fn post<T: for<'a> Deserialize<'a>, B: Serialize>( &self, path: &str, body: &B, ) -> Result<T, JupiterError>
Trait Implementations§
Source§impl Clone for JupiterClient
impl Clone for JupiterClient
Source§fn clone(&self) -> JupiterClient
fn clone(&self) -> JupiterClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JupiterClient
impl !RefUnwindSafe for JupiterClient
impl Send for JupiterClient
impl Sync for JupiterClient
impl Unpin for JupiterClient
impl UnsafeUnpin for JupiterClient
impl !UnwindSafe for JupiterClient
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