pub struct GhClient { /* private fields */ }Implementations§
Source§impl GhClient
impl GhClient
pub fn new(token: Option<String>) -> Self
pub fn has_token(&self) -> bool
Sourcepub fn list_owner_repos(&self, owner: &str) -> Vec<String>
pub fn list_owner_repos(&self, owner: &str) -> Vec<String>
List every repository under a GitHub org or user, returning owner/repo
slugs. Forks are skipped; archived repos are kept. Tries the org endpoint
first and falls back to the user endpoint, so it works for either kind of
account. Returns an empty vec if the owner can’t be listed.
pub fn fetch_bytes(&self, url: &str) -> Option<(Vec<u8>, String)>
Auto Trait Implementations§
impl !RefUnwindSafe for GhClient
impl !UnwindSafe for GhClient
impl Freeze for GhClient
impl Send for GhClient
impl Sync for GhClient
impl Unpin for GhClient
impl UnsafeUnpin for GhClient
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