Struct octorust::activity::Activity[][src]

pub struct Activity { /* fields omitted */ }

Implementations

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.

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

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

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.

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

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.

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

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

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.

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.

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.

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.

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.

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.

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

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.

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

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.

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

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

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.

List stargazers.

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

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

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

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.

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

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

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

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

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::Direction – One of asc (ascending) or desc (descending).
  • per_page: i64 – Results per page (max 100).
  • page: i64 – Page number of the results to fetch.

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

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

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

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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::Direction – One of asc (ascending) or desc (descending).
  • per_page: i64 – Results per page (max 100).
  • page: i64 – Page number of the results to fetch.

List repositories starred by a user.

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

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

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

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.

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

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

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

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

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.