pub struct NodestyApiClient { /* private fields */ }
Implementations§
Source§impl NodestyApiClient
impl NodestyApiClient
pub fn new(options: RestClientOptions) -> Result<Arc<Self>, Error>
pub async fn send_request<T: DeserializeOwned>( &self, method: Method, path: &str, body: Option<Value>, ) -> Result<ApiResponse<T>, Error>
Auto Trait Implementations§
impl Freeze for NodestyApiClient
impl !RefUnwindSafe for NodestyApiClient
impl Send for NodestyApiClient
impl Sync for NodestyApiClient
impl Unpin for NodestyApiClient
impl !UnwindSafe for NodestyApiClient
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