1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use crate::api::rcos::{prelude::*, send_query};
use crate::error::TelescopeError;
use chrono::Utc;
#[derive(GraphQLQuery)]
#[graphql(
schema_path = "graphql/rcos/schema.json",
query_path = "graphql/rcos/stats/landing_page.graphql",
response_derives = "Serialize"
)]
pub struct LandingPageStatistics;
use self::landing_page_statistics::{ResponseData, Variables};
impl LandingPageStatistics {
pub async fn get() -> Result<ResponseData, TelescopeError> {
return send_query::<Self>(Variables {
now: Utc::today().naive_utc(),
})
.await;
}
}