Struct octorust::activity::Activity

source ·
pub struct Activity {
    pub client: Client,
}

Fields§

§client: Client

Implementations§

source§

impl Activity

source

pub async fn list_public_events( &self, per_page: i64, page: i64 ) -> Result<Response<Vec<Event>>, ClientError>

List public events.

This function performs a GET to the /events endpoint.

We delay the public events feed by five minutes, which means the most recent event returned by the public events API actually occurred at least five minutes ago.

FROM: https://docs.github.com/rest/reference/activity#list-public-events

Parameters:

  • per_page: i64 – Results per page (max 100).
  • page: i64 – Page number of the results to fetch.
source

pub async fn list_all_public_events( &self ) -> Result<Response<Vec<Event>>, ClientError>

List public events.

This function performs a GET to the /events endpoint.

As opposed to list_public_events, this function returns all the pages of the request at once.

We delay the public events feed by five minutes, which means the most recent event returned by the public events API actually occurred at least five minutes ago.

FROM: https://docs.github.com/rest/reference/activity#list-public-events

source

pub async fn get_feeds(&self) -> Result<Response<Feed>, ClientError>

Get feeds.

This function performs a GET to the /feeds endpoint.

GitHub provides several timeline resources in Atom format. The Feeds API lists all the feeds available to the authenticated user:

  • Timeline: The GitHub global public timeline
  • User: The public timeline for any user, using URI template
  • Current user public: The public timeline for the authenticated user
  • Current user: The private timeline for the authenticated user
  • Current user actor: The private timeline for activity created by the authenticated user
  • Current user organizations: The private timeline for the organizations the authenticated user is a member of.
  • Security advisories: A collection of public announcements that provide information about security-related vulnerabilities in software on GitHub.

Note: Private feeds are only returned when authenticating via Basic Auth since current feed URIs use the older, non revocable auth tokens.

FROM: https://docs.github.com/rest/reference/activity#get-feeds

source

pub async fn list_public_events_for_repo_network( &self, owner: &str, repo: &str, per_page: i64, page: i64 ) -> Result<Response<Vec<Event>>, ClientError>

List public events for a network of repositories.

This function performs a GET to the /networks/{owner}/{repo}/events endpoint.

FROM: https://docs.github.com/rest/reference/activity#list-public-events-for-a-network-of-repositories

Parameters:

  • owner: &str
  • repo: &str
  • per_page: i64 – Results per page (max 100).
  • page: i64 – Page number of the results to fetch.
source

pub async fn list_all_public_events_for_repo_network( &self, owner: &str, repo: &str ) -> Result<Response<Vec<Event>>, ClientError>

List public events for a network of repositories.

This function performs a GET to the /networks/{owner}/{repo}/events endpoint.

As opposed to list_public_events_for_repo_network, this function returns all the pages of the request at once.

FROM: https://docs.github.com/rest/reference/activity#list-public-events-for-a-network-of-repositories

source

pub async fn list_notifications_for_authenticated_user( &self, all: bool, participating: bool, since: Option<DateTime<Utc>>, before: Option<DateTime<Utc>>, per_page: i64, page: i64 ) -> Result<Response<Vec<Thread>>, ClientError>

List notifications for the authenticated user.

This function performs a GET to the /notifications endpoint.

List all notifications for the current user, sorted by most recently updated.

FROM: https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user

Parameters:

  • all: bool – If true, show notifications marked as read.
  • participating: bool – If true, only shows notifications in which the user is directly participating or mentioned.
  • since: chrono::DateTime<chrono::Utc> – Only show notifications updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
  • before: chrono::DateTime<chrono::Utc> – Only show notifications updated before the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
  • per_page: i64 – Results per page (max 100).
  • page: i64 – Page number of the results to fetch.
source

pub async fn list_all_notifications_for_authenticated_user( &self, all: bool, participating: bool, since: Option<DateTime<Utc>>, before: Option<DateTime<Utc>> ) -> Result<Response<Vec<Thread>>, ClientError>

List notifications for the authenticated user.

This function performs a GET to the /notifications endpoint.

As opposed to list_notifications_for_authenticated_user, this function returns all the pages of the request at once.

List all notifications for the current user, sorted by most recently updated.

FROM: https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user

source

pub async fn mark_notifications_as_read( &self, body: &ActivityMarkNotificationsAsReadRequest ) -> Result<Response<Error>, ClientError>

Mark notifications as read.

This function performs a PUT to the /notifications endpoint.

Marks all notifications as “read” removes it from the default view on GitHub. If the number of notifications is too large to complete in one request, you will receive a 202 Accepted status and GitHub will run an asynchronous process to mark notifications as “read.” To check whether any “unread” notifications remain, you can use the List notifications for the authenticated user endpoint and pass the query parameter all=false.

FROM: https://docs.github.com/rest/reference/activity#mark-notifications-as-read

source

pub async fn get_thread( &self, thread_id: i64 ) -> Result<Response<Thread>, ClientError>

Get a thread.

This function performs a GET to the /notifications/threads/{thread_id} endpoint.

FROM: https://docs.github.com/rest/reference/activity#get-a-thread

Parameters:

  • thread_id: i64 – thread_id parameter.
source

pub async fn mark_thread_as_read( &self, thread_id: i64 ) -> Result<Response<()>, ClientError>

Mark a thread as read.

This function performs a PATCH to the /notifications/threads/{thread_id} endpoint.

FROM: https://docs.github.com/rest/reference/activity#mark-a-thread-as-read

Parameters:

  • thread_id: i64 – thread_id parameter.
source

pub async fn get_thread_subscription_for_authenticated_user( &self, thread_id: i64 ) -> Result<Response<ThreadSubscription>, ClientError>

Get a thread subscription for the authenticated user.

This function performs a GET to the /notifications/threads/{thread_id}/subscription endpoint.

This checks to see if the current user is subscribed to a thread. You can also get a repository subscription.

Note that subscriptions are only generated if a user is participating in a conversation–for example, they’ve replied to the thread, were @mentioned, or manually subscribe to a thread.

FROM: https://docs.github.com/rest/reference/activity#get-a-thread-subscription-for-the-authenticated-user

Parameters:

  • thread_id: i64 – thread_id parameter.
source

pub async fn set_thread_subscription( &self, thread_id: i64, body: &ActivitySetThreadSubscriptionRequest ) -> Result<Response<ThreadSubscription>, ClientError>

Set a thread subscription.

This function performs a PUT to the /notifications/threads/{thread_id}/subscription endpoint.

If you are watching a repository, you receive notifications for all threads by default. Use this endpoint to ignore future notifications for threads until you comment on the thread or get an @mention.

You can also use this endpoint to subscribe to threads that you are currently not receiving notifications for or to subscribed to threads that you have previously ignored.

Unsubscribing from a conversation in a repository that you are not watching is functionally equivalent to the Delete a thread subscription endpoint.

FROM: https://docs.github.com/rest/reference/activity#set-a-thread-subscription

Parameters:

  • thread_id: i64 – thread_id parameter.
source

pub async fn delete_thread_subscription( &self, thread_id: i64 ) -> Result<Response<()>, ClientError>

Delete a thread subscription.

This function performs a DELETE to the /notifications/threads/{thread_id}/subscription endpoint.

Mutes all future notifications for a conversation until you comment on the thread or get an @mention. If you are watching the repository of the thread, you will still receive notifications. To ignore future notifications for a repository you are watching, use the Set a thread subscription endpoint and set ignore to true.

FROM: https://docs.github.com/rest/reference/activity#delete-a-thread-subscription

Parameters:

  • thread_id: i64 – thread_id parameter.
source

pub async fn list_public_org_events( &self, org: &str, per_page: i64, page: i64 ) -> Result<Response<Vec<Event>>, ClientError>

List public organization events.

This function performs a GET to the /orgs/{org}/events endpoint.

FROM: https://docs.github.com/rest/reference/activity#list-public-organization-events

Parameters:

  • org: &str
  • per_page: i64 – Results per page (max 100).
  • page: i64 – Page number of the results to fetch.
source

pub async fn list_all_public_org_events( &self, org: &str ) -> Result<Response<Vec<Event>>, ClientError>

List public organization events.

This function performs a GET to the /orgs/{org}/events endpoint.

As opposed to list_public_org_events, this function returns all the pages of the request at once.

FROM: https://docs.github.com/rest/reference/activity#list-public-organization-events

source

pub async fn list_repo_events( &self, owner: &str, repo: &str, per_page: i64, page: i64 ) -> Result<Response<Vec<Event>>, ClientError>

List repository events.

This function performs a GET to the /repos/{owner}/{repo}/events endpoint.

FROM: https://docs.github.com/rest/reference/activity#list-repository-events

Parameters:

  • owner: &str
  • repo: &str
  • per_page: i64 – Results per page (max 100).
  • page: i64 – Page number of the results to fetch.
source

pub async fn list_all_repo_events( &self, owner: &str, repo: &str ) -> Result<Response<Vec<Event>>, ClientError>

List repository events.

This function performs a GET to the /repos/{owner}/{repo}/events endpoint.

As opposed to list_repo_events, this function returns all the pages of the request at once.

FROM: https://docs.github.com/rest/reference/activity#list-repository-events

source

pub async fn list_repo_notifications_for_authenticated_user( &self, owner: &str, repo: &str, all: bool, participating: bool, since: Option<DateTime<Utc>>, before: Option<DateTime<Utc>>, per_page: i64, page: i64 ) -> Result<Response<Vec<Thread>>, ClientError>

List repository notifications for the authenticated user.

This function performs a GET to the /repos/{owner}/{repo}/notifications endpoint.

List all notifications for the current user.

FROM: https://docs.github.com/rest/reference/activity#list-repository-notifications-for-the-authenticated-user

Parameters:

  • owner: &str
  • repo: &str
  • all: bool – If true, show notifications marked as read.
  • participating: bool – If true, only shows notifications in which the user is directly participating or mentioned.
  • since: chrono::DateTime<chrono::Utc> – Only show notifications updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
  • before: chrono::DateTime<chrono::Utc> – Only show notifications updated before the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
  • per_page: i64 – Results per page (max 100).
  • page: i64 – Page number of the results to fetch.
source

pub async fn list_all_repo_notifications_for_authenticated_user( &self, owner: &str, repo: &str, all: bool, participating: bool, since: Option<DateTime<Utc>>, before: Option<DateTime<Utc>> ) -> Result<Response<Vec<Thread>>, ClientError>

List repository notifications for the authenticated user.

This function performs a GET to the /repos/{owner}/{repo}/notifications endpoint.

As opposed to list_repo_notifications_for_authenticated_user, this function returns all the pages of the request at once.

List all notifications for the current user.

FROM: https://docs.github.com/rest/reference/activity#list-repository-notifications-for-the-authenticated-user

source

pub async fn mark_repo_notifications_as_read( &self, owner: &str, repo: &str, body: &ActivityMarkRepoNotificationsAsReadRequest ) -> Result<Response<PullsUpdateBranchResponse>, ClientError>

Mark repository notifications as read.

This function performs a PUT to the /repos/{owner}/{repo}/notifications endpoint.

Marks all notifications in a repository as “read” removes them from the default view on GitHub. If the number of notifications is too large to complete in one request, you will receive a 202 Accepted status and GitHub will run an asynchronous process to mark notifications as “read.” To check whether any “unread” notifications remain, you can use the List repository notifications for the authenticated user endpoint and pass the query parameter all=false.

FROM: https://docs.github.com/rest/reference/activity#mark-repository-notifications-as-read

Parameters:

  • owner: &str
  • repo: &str
source

pub async fn list_stargazers_for_repo( &self, owner: &str, repo: &str, per_page: i64, page: i64 ) -> Result<Response<ActivityListStargazersRepoResponseAnyOf>, ClientError>

List stargazers.

This function performs a GET to the /repos/{owner}/{repo}/stargazers endpoint.

Lists the people that have starred the repository.

You can also find out when stars were created by passing the following custom media type via the Accept header:

FROM: https://docs.github.com/rest/reference/activity#list-stargazers

Parameters:

  • owner: &str
  • repo: &str
  • per_page: i64 – Results per page (max 100).
  • page: i64 – Page number of the results to fetch.
source

pub async fn list_watchers_for_repo( &self, owner: &str, repo: &str, per_page: i64, page: i64 ) -> Result<Response<Vec<SimpleUser>>, ClientError>

List watchers.

This function performs a GET to the /repos/{owner}/{repo}/subscribers endpoint.

Lists the people watching the specified repository.

FROM: https://docs.github.com/rest/reference/activity#list-watchers

Parameters:

  • owner: &str
  • repo: &str
  • per_page: i64 – Results per page (max 100).
  • page: i64 – Page number of the results to fetch.
source

pub async fn list_all_watchers_for_repo( &self, owner: &str, repo: &str ) -> Result<Response<Vec<SimpleUser>>, ClientError>

List watchers.

This function performs a GET to the /repos/{owner}/{repo}/subscribers endpoint.

As opposed to list_watchers_for_repo, this function returns all the pages of the request at once.

Lists the people watching the specified repository.

FROM: https://docs.github.com/rest/reference/activity#list-watchers

source

pub async fn get_repo_subscription( &self, owner: &str, repo: &str ) -> Result<Response<RepositorySubscription>, ClientError>

Get a repository subscription.

This function performs a GET to the /repos/{owner}/{repo}/subscription endpoint.

FROM: https://docs.github.com/rest/reference/activity#get-a-repository-subscription

Parameters:

  • owner: &str
  • repo: &str
source

pub async fn set_repo_subscription( &self, owner: &str, repo: &str, body: &ActivitySetRepoSubscriptionRequest ) -> Result<Response<RepositorySubscription>, ClientError>

Set a repository subscription.

This function performs a PUT to the /repos/{owner}/{repo}/subscription endpoint.

If you would like to watch a repository, set subscribed to true. If you would like to ignore notifications made within a repository, set ignored to true. If you would like to stop watching a repository, delete the repository’s subscription completely.

FROM: https://docs.github.com/rest/reference/activity#set-a-repository-subscription

Parameters:

  • owner: &str
  • repo: &str
source

pub async fn delete_repo_subscription( &self, owner: &str, repo: &str ) -> Result<Response<()>, ClientError>

Delete a repository subscription.

This function performs a DELETE to the /repos/{owner}/{repo}/subscription endpoint.

This endpoint should only be used to stop watching a repository. To control whether or not you wish to receive notifications from a repository, set the repository’s subscription manually.

FROM: https://docs.github.com/rest/reference/activity#delete-a-repository-subscription

Parameters:

  • owner: &str
  • repo: &str
source

pub async fn list_repos_starred_by_authenticated_user( &self, sort: Sort, direction: Order, per_page: i64, page: i64 ) -> Result<Response<Vec<Repository>>, ClientError>

List repositories starred by the authenticated user.

This function performs a GET to the /user/starred endpoint.

Lists repositories the authenticated user has starred.

You can also find out when stars were created by passing the following custom media type via the Accept header:

FROM: https://docs.github.com/rest/reference/activity#list-repositories-starred-by-the-authenticated-user

Parameters:

  • sort: crate::types::Sort – One of created (when the repository was starred) or updated (when it was last pushed to).
  • direction: crate::types::Order – The order of audit log events. To list newest events first, specify desc. To list oldest events first, specify asc.

The default is desc.

  • per_page: i64 – Results per page (max 100).
  • page: i64 – Page number of the results to fetch.
source

pub async fn list_all_repos_starred_by_authenticated_user( &self, sort: Sort, direction: Order ) -> Result<Response<Vec<Repository>>, ClientError>

List repositories starred by the authenticated user.

This function performs a GET to the /user/starred endpoint.

As opposed to list_repos_starred_by_authenticated_user, this function returns all the pages of the request at once.

Lists repositories the authenticated user has starred.

You can also find out when stars were created by passing the following custom media type via the Accept header:

FROM: https://docs.github.com/rest/reference/activity#list-repositories-starred-by-the-authenticated-user

source

pub async fn check_repo_is_starred_by_authenticated_user( &self, owner: &str, repo: &str ) -> Result<Response<()>, ClientError>

Check if a repository is starred by the authenticated user.

This function performs a GET to the /user/starred/{owner}/{repo} endpoint.

FROM: https://docs.github.com/rest/reference/activity#check-if-a-repository-is-starred-by-the-authenticated-user

Parameters:

  • owner: &str
  • repo: &str
source

pub async fn star_repo_for_authenticated_user( &self, owner: &str, repo: &str ) -> Result<Response<()>, ClientError>

Star a repository for the authenticated user.

This function performs a PUT to the /user/starred/{owner}/{repo} endpoint.

Note that you’ll need to set Content-Length to zero when calling out to this endpoint. For more information, see “HTTP verbs.”

FROM: https://docs.github.com/rest/reference/activity#star-a-repository-for-the-authenticated-user

Parameters:

  • owner: &str
  • repo: &str
source

pub async fn unstar_repo_for_authenticated_user( &self, owner: &str, repo: &str ) -> Result<Response<()>, ClientError>

Unstar a repository for the authenticated user.

This function performs a DELETE to the /user/starred/{owner}/{repo} endpoint.

FROM: https://docs.github.com/rest/reference/activity#unstar-a-repository-for-the-authenticated-user

Parameters:

  • owner: &str
  • repo: &str
source

pub async fn list_watched_repos_for_authenticated_user( &self, per_page: i64, page: i64 ) -> Result<Response<Vec<MinimalRepository>>, ClientError>

List repositories watched by the authenticated user.

This function performs a GET to the /user/subscriptions endpoint.

Lists repositories the authenticated user is watching.

FROM: https://docs.github.com/rest/reference/activity#list-repositories-watched-by-the-authenticated-user

Parameters:

  • per_page: i64 – Results per page (max 100).
  • page: i64 – Page number of the results to fetch.
source

pub async fn list_all_watched_repos_for_authenticated_user( &self ) -> Result<Response<Vec<MinimalRepository>>, ClientError>

List repositories watched by the authenticated user.

This function performs a GET to the /user/subscriptions endpoint.

As opposed to list_watched_repos_for_authenticated_user, this function returns all the pages of the request at once.

Lists repositories the authenticated user is watching.

FROM: https://docs.github.com/rest/reference/activity#list-repositories-watched-by-the-authenticated-user

source

pub async fn list_events_for_authenticated_user( &self, username: &str, per_page: i64, page: i64 ) -> Result<Response<Vec<Event>>, ClientError>

List events for the authenticated user.

This function performs a GET to the /users/{username}/events endpoint.

If you are authenticated as the given user, you will see your private events. Otherwise, you’ll only see public events.

FROM: https://docs.github.com/rest/reference/activity#list-events-for-the-authenticated-user

Parameters:

  • username: &str
  • per_page: i64 – Results per page (max 100).
  • page: i64 – Page number of the results to fetch.
source

pub async fn list_all_events_for_authenticated_user( &self, username: &str ) -> Result<Response<Vec<Event>>, ClientError>

List events for the authenticated user.

This function performs a GET to the /users/{username}/events endpoint.

As opposed to list_events_for_authenticated_user, this function returns all the pages of the request at once.

If you are authenticated as the given user, you will see your private events. Otherwise, you’ll only see public events.

FROM: https://docs.github.com/rest/reference/activity#list-events-for-the-authenticated-user

source

pub async fn list_org_events_for_authenticated_user( &self, username: &str, org: &str, per_page: i64, page: i64 ) -> Result<Response<Vec<Event>>, ClientError>

List organization events for the authenticated user.

This function performs a GET to the /users/{username}/events/orgs/{org} endpoint.

This is the user’s organization dashboard. You must be authenticated as the user to view this.

FROM: https://docs.github.com/rest/reference/activity#list-organization-events-for-the-authenticated-user

Parameters:

  • username: &str
  • org: &str
  • per_page: i64 – Results per page (max 100).
  • page: i64 – Page number of the results to fetch.
source

pub async fn list_all_org_events_for_authenticated_user( &self, username: &str, org: &str ) -> Result<Response<Vec<Event>>, ClientError>

List organization events for the authenticated user.

This function performs a GET to the /users/{username}/events/orgs/{org} endpoint.

As opposed to list_org_events_for_authenticated_user, this function returns all the pages of the request at once.

This is the user’s organization dashboard. You must be authenticated as the user to view this.

FROM: https://docs.github.com/rest/reference/activity#list-organization-events-for-the-authenticated-user

source

pub async fn list_public_events_for_user( &self, username: &str, per_page: i64, page: i64 ) -> Result<Response<Vec<Event>>, ClientError>

List public events for a user.

This function performs a GET to the /users/{username}/events/public endpoint.

FROM: https://docs.github.com/rest/reference/activity#list-public-events-for-a-user

Parameters:

  • username: &str
  • per_page: i64 – Results per page (max 100).
  • page: i64 – Page number of the results to fetch.
source

pub async fn list_all_public_events_for_user( &self, username: &str ) -> Result<Response<Vec<Event>>, ClientError>

List public events for a user.

This function performs a GET to the /users/{username}/events/public endpoint.

As opposed to list_public_events_for_user, this function returns all the pages of the request at once.

FROM: https://docs.github.com/rest/reference/activity#list-public-events-for-a-user

source

pub async fn list_received_events_for_user( &self, username: &str, per_page: i64, page: i64 ) -> Result<Response<Vec<Event>>, ClientError>

List events received by the authenticated user.

This function performs a GET to the /users/{username}/received_events endpoint.

These are events that you’ve received by watching repos and following users. If you are authenticated as the given user, you will see private events. Otherwise, you’ll only see public events.

FROM: https://docs.github.com/rest/reference/activity#list-events-received-by-the-authenticated-user

Parameters:

  • username: &str
  • per_page: i64 – Results per page (max 100).
  • page: i64 – Page number of the results to fetch.
source

pub async fn list_all_received_events_for_user( &self, username: &str ) -> Result<Response<Vec<Event>>, ClientError>

List events received by the authenticated user.

This function performs a GET to the /users/{username}/received_events endpoint.

As opposed to list_received_events_for_user, this function returns all the pages of the request at once.

These are events that you’ve received by watching repos and following users. If you are authenticated as the given user, you will see private events. Otherwise, you’ll only see public events.

FROM: https://docs.github.com/rest/reference/activity#list-events-received-by-the-authenticated-user

source

pub async fn list_received_public_events_for_user( &self, username: &str, per_page: i64, page: i64 ) -> Result<Response<Vec<Event>>, ClientError>

List public events received by a user.

This function performs a GET to the /users/{username}/received_events/public endpoint.

FROM: https://docs.github.com/rest/reference/activity#list-public-events-received-by-a-user

Parameters:

  • username: &str
  • per_page: i64 – Results per page (max 100).
  • page: i64 – Page number of the results to fetch.
source

pub async fn list_all_received_public_events_for_user( &self, username: &str ) -> Result<Response<Vec<Event>>, ClientError>

List public events received by a user.

This function performs a GET to the /users/{username}/received_events/public endpoint.

As opposed to list_received_public_events_for_user, this function returns all the pages of the request at once.

FROM: https://docs.github.com/rest/reference/activity#list-public-events-received-by-a-user

source

pub async fn list_repos_starred_by_user( &self, username: &str, sort: Sort, direction: Order, per_page: i64, page: i64 ) -> Result<Response<ActivityListReposStarredByUserResponseAnyOf>, ClientError>

List repositories starred by a user.

This function performs a GET to the /users/{username}/starred endpoint.

Lists repositories a user has starred.

You can also find out when stars were created by passing the following custom media type via the Accept header:

FROM: https://docs.github.com/rest/reference/activity#list-repositories-starred-by-a-user

Parameters:

  • username: &str
  • sort: crate::types::Sort – One of created (when the repository was starred) or updated (when it was last pushed to).
  • direction: crate::types::Order – The order of audit log events. To list newest events first, specify desc. To list oldest events first, specify asc.

The default is desc.

  • per_page: i64 – Results per page (max 100).
  • page: i64 – Page number of the results to fetch.
source

pub async fn list_repos_watched_by_user( &self, username: &str, per_page: i64, page: i64 ) -> Result<Response<Vec<MinimalRepository>>, ClientError>

List repositories watched by a user.

This function performs a GET to the /users/{username}/subscriptions endpoint.

Lists repositories a user is watching.

FROM: https://docs.github.com/rest/reference/activity#list-repositories-watched-by-a-user

Parameters:

  • username: &str
  • per_page: i64 – Results per page (max 100).
  • page: i64 – Page number of the results to fetch.
source

pub async fn list_all_repos_watched_by_user( &self, username: &str ) -> Result<Response<Vec<MinimalRepository>>, ClientError>

List repositories watched by a user.

This function performs a GET to the /users/{username}/subscriptions endpoint.

As opposed to list_repos_watched_by_user, this function returns all the pages of the request at once.

Lists repositories a user is watching.

FROM: https://docs.github.com/rest/reference/activity#list-repositories-watched-by-a-user

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more