bsac_api 0.1.0

Api lib to retrive colege timetable from api
Documentation
use crate::model::*;
use crate::FluentRequest;
use serde::{Serialize, Deserialize};
use httpclient::InMemoryResponseExt;
/**You should use this struct via [`bsac_apiClient::get_lessons`].

On request success, this will return a [`GroupListServiceResponse`].*/
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct GetLessonsRequest {}
impl FluentRequest<'_, GetLessonsRequest> {}
impl<'a> ::std::future::IntoFuture for FluentRequest<'a, GetLessonsRequest> {
    type Output = httpclient::InMemoryResult<GroupListServiceResponse>;
    type IntoFuture = ::futures::future::BoxFuture<'a, Self::Output>;
    fn into_future(self) -> Self::IntoFuture {
        Box::pin(async move {
            let url = "/api/lessons";
            let mut r = self.client.client.get(url);
            r = r.set_query(self.params);
            let res = r.await?;
            res.json().map_err(Into::into)
        })
    }
}