use reqwest::Method;
use serde::{Deserialize, Serialize};
use crate::rest_api::endpoint;
endpoint!(
"/fapi/v1/ping",
Method::GET,
TestConnectivityEndpoint,
TestConnectivityParams,
TestConnectivityResponse
);
pub struct TestConnectivityEndpoint<'r> {
client: &'r crate::rest_api::RestApiClient,
}
impl<'r> TestConnectivityEndpoint<'r> {
pub fn new(client: &'r crate::rest_api::RestApiClient) -> Self {
Self { client }
}
}
#[derive(Debug, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct TestConnectivityParams {}
impl Default for TestConnectivityParams {
fn default() -> Self {
Self::new()
}
}
impl TestConnectivityParams {
pub fn new() -> Self {
Self {}
}
}
#[derive(Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct TestConnectivityResponse {}