pub struct GithubSource { /* private fields */ }Expand description
GitHub trend source.
Implementations§
Source§impl GithubSource
impl GithubSource
Sourcepub fn new(token: Option<String>) -> GithubSource
pub fn new(token: Option<String>) -> GithubSource
Build a source; token is a GitHub PAT (env GH_TOKEN in the CLI).
Sourcepub async fn list_user_repos(&self, owner: &str) -> Result<Vec<RepoListed>>
pub async fn list_user_repos(&self, owner: &str) -> Result<Vec<RepoListed>>
List a user’s own (non-fork-inclusive) repos for the personal profile.
Core REST endpoint: fetch-kit’s built-in retry applies, no manual pacing needed at 5000 req/h.
Trait Implementations§
Source§impl Clone for GithubSource
impl Clone for GithubSource
Source§impl Debug for GithubSource
impl Debug for GithubSource
Source§impl TrendSource for GithubSource
impl TrendSource for GithubSource
Auto Trait Implementations§
impl !RefUnwindSafe for GithubSource
impl !UnwindSafe for GithubSource
impl Freeze for GithubSource
impl Send for GithubSource
impl Sync for GithubSource
impl Unpin for GithubSource
impl UnsafeUnpin for GithubSource
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