Files
novem/src/api.rs

23 lines
382 B
Rust
Raw Normal View History

2026-04-20 22:54:31 +01:00
use crate::query;
pub(crate) mod repo;
2026-04-21 11:50:04 +01:00
pub(crate) mod user;
2026-04-20 22:54:31 +01:00
2026-04-21 11:50:04 +01:00
#[derive(Clone)]
2026-04-20 22:54:31 +01:00
pub struct QueryContext {
pub(crate) http: reqwest::Client,
2026-04-21 11:50:04 +01:00
pub(crate) auth: Option<Auth>,
2026-04-20 22:54:31 +01:00
}
2026-04-21 11:50:04 +01:00
#[derive(Clone)]
pub(crate) struct Auth {
pub(crate) access_token: String,
pub(crate) refresh_token: String,
}
pub enum Error {
Unauthenticated,
}
impl query::Context for QueryContext {}