some more bs
This commit is contained in:
15
src/api.rs
15
src/api.rs
@@ -1,9 +1,22 @@
|
||||
use crate::query;
|
||||
|
||||
pub(crate) mod repo;
|
||||
pub(crate) mod user;
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct QueryContext {
|
||||
pub(crate) http: reqwest::Client,
|
||||
pub(crate) auth: Option<Auth>,
|
||||
}
|
||||
|
||||
impl query::Context for QueryContext {}
|
||||
#[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 {}
|
||||
|
||||
Reference in New Issue
Block a user