use crate::model::*;
use crate::JyveClient;
use serde_json::json;
#[derive(Clone)]
pub struct ServicesAppVarsRequest<'a> {
pub(crate) http_client: &'a JyveClient,
}
impl<'a> ServicesAppVarsRequest<'a> {
pub async fn send(self) -> ::httpclient::InMemoryResult<()> {
let mut r = self.http_client.client.get("/services/app/");
r = self.http_client.authenticate(r);
let res = r.send_awaiting_body().await?;
res.json()
}
}
impl<'a> ::std::future::IntoFuture for ServicesAppVarsRequest<'a> {
type Output = httpclient::InMemoryResult<()>;
type IntoFuture = ::futures::future::BoxFuture<'a, Self::Output>;
fn into_future(self) -> Self::IntoFuture {
Box::pin(self.send())
}
}