Struct jortestkit::github::GitHubApi
source · pub struct GitHubApi {
base_url: String,
token: Option<String>,
}
Fields§
§base_url: String
§token: Option<String>
Implementations§
source§impl GitHubApi
impl GitHubApi
pub fn new(base_url: String, token: Option<String>) -> Self
fn get(&self, path: &str) -> Result<Response, GitHubApiError>
pub fn describe_releases(&self) -> Result<CachedReleases, GitHubApiError>
Auto Trait Implementations§
impl RefUnwindSafe for GitHubApi
impl Send for GitHubApi
impl Sync for GitHubApi
impl Unpin for GitHubApi
impl UnwindSafe for GitHubApi
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more