Skip to main content

octocrate_infra/
lib.rs

1mod api_client;
2mod error;
3
4use std::fmt::Debug;
5
6pub use api_client::*;
7pub use error::*;
8
9pub trait ExpirableToken: Debug + Send + Sync {
10    fn is_expired(&self) -> bool;
11    fn get_token(&self) -> Option<String>;
12}
13
14pub type GithubResult<T> = std::result::Result<T, GithubError>;