Struct starry::GithubClient [−][src]
pub struct GithubClient { /* fields omitted */ }
Implementations
impl GithubClient
[src]
impl GithubClient
[src]pub fn new(conf: &Conf) -> Result<Self>
[src]
pub fn get_user(&self, user_id: UserId) -> Result<User>
[src]
get a GitHub user’s information by its login
pub fn get_user_star_counts(
&self,
user_id: UserId,
now: DateTime<Utc>
) -> Result<UserObs>
[src]
&self,
user_id: UserId,
now: DateTime<Utc>
) -> Result<UserObs>
query the GitHub API to get a UserObs which has the number of stars of all this user’s repositories
Auto Trait Implementations
impl !RefUnwindSafe for GithubClient
impl !RefUnwindSafe for GithubClient
impl Send for GithubClient
impl Send for GithubClient
impl Sync for GithubClient
impl Sync for GithubClient
impl Unpin for GithubClient
impl Unpin for GithubClient
impl !UnwindSafe for GithubClient
impl !UnwindSafe for GithubClient
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]