onspring-api-sdk-rust 0.0.1

Rust SDK for the Onspring API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use reqwest::Method;

use crate::client::OnspringClient;
use crate::error::Result;

impl OnspringClient {
  /// Checks if the Onspring API is reachable.
  pub async fn ping(&self) -> Result<()> {
    self
      .request_no_content(Method::GET, "/Ping", &[], Option::<&()>::None)
      .await
  }
}