Skip to main content

onspring/endpoints/
ping.rs

1use reqwest::Method;
2
3use crate::client::OnspringClient;
4use crate::error::Result;
5
6impl OnspringClient {
7  /// Checks if the Onspring API is reachable.
8  pub async fn ping(&self) -> Result<()> {
9    self
10      .request_no_content(Method::GET, "/Ping", &[], Option::<&()>::None)
11      .await
12  }
13}