Struct roctogen::endpoints::interactions::Interactions [−][src]
pub struct Interactions<'api> { /* fields omitted */ }
Implementations
Get interaction restrictions for your public repositories
Shows which type of GitHub user can interact with your public repositories and when the restriction expires.
GitHub API docs for get_restrictions_for_authenticated_user
Get interaction restrictions for your public repositories
Shows which type of GitHub user can interact with your public repositories and when the restriction expires.
GitHub API docs for get_restrictions_for_authenticated_user
pub async fn get_restrictions_for_org_async(
&self,
org: &str
) -> Result<GetInteractionsGetRestrictionsForAuthenticatedUserResponse200, InteractionsGetRestrictionsForOrgError>
pub async fn get_restrictions_for_org_async(
&self,
org: &str
) -> Result<GetInteractionsGetRestrictionsForAuthenticatedUserResponse200, InteractionsGetRestrictionsForOrgError>
Get interaction restrictions for an organization
Shows which type of GitHub user can interact with this organization and when the restriction expires. If there is no restrictions, you will see an empty response.
GitHub API docs for get_restrictions_for_org
Get interaction restrictions for an organization
Shows which type of GitHub user can interact with this organization and when the restriction expires. If there is no restrictions, you will see an empty response.
GitHub API docs for get_restrictions_for_org
pub async fn get_restrictions_for_repo_async(
&self,
owner: &str,
repo: &str
) -> Result<GetInteractionsGetRestrictionsForAuthenticatedUserResponse200, InteractionsGetRestrictionsForRepoError>
pub async fn get_restrictions_for_repo_async(
&self,
owner: &str,
repo: &str
) -> Result<GetInteractionsGetRestrictionsForAuthenticatedUserResponse200, InteractionsGetRestrictionsForRepoError>
Get interaction restrictions for a repository
Shows which type of GitHub user can interact with this repository and when the restriction expires. If there are no restrictions, you will see an empty response.
GitHub API docs for get_restrictions_for_repo
pub fn get_restrictions_for_repo(
&self,
owner: &str,
repo: &str
) -> Result<GetInteractionsGetRestrictionsForAuthenticatedUserResponse200, InteractionsGetRestrictionsForRepoError>
pub fn get_restrictions_for_repo(
&self,
owner: &str,
repo: &str
) -> Result<GetInteractionsGetRestrictionsForAuthenticatedUserResponse200, InteractionsGetRestrictionsForRepoError>
Get interaction restrictions for a repository
Shows which type of GitHub user can interact with this repository and when the restriction expires. If there are no restrictions, you will see an empty response.
GitHub API docs for get_restrictions_for_repo
pub async fn remove_restrictions_for_authenticated_user_async(
&self
) -> Result<(), InteractionsRemoveRestrictionsForAuthenticatedUserError>
pub async fn remove_restrictions_for_authenticated_user_async(
&self
) -> Result<(), InteractionsRemoveRestrictionsForAuthenticatedUserError>
Remove interaction restrictions from your public repositories
Removes any interaction restrictions from your public repositories.
GitHub API docs for remove_restrictions_for_authenticated_user
Remove interaction restrictions from your public repositories
Removes any interaction restrictions from your public repositories.
GitHub API docs for remove_restrictions_for_authenticated_user
pub async fn remove_restrictions_for_org_async(
&self,
org: &str
) -> Result<(), InteractionsRemoveRestrictionsForOrgError>
pub async fn remove_restrictions_for_org_async(
&self,
org: &str
) -> Result<(), InteractionsRemoveRestrictionsForOrgError>
Remove interaction restrictions for an organization
Removes all interaction restrictions from public repositories in the given organization. You must be an organization owner to remove restrictions.
GitHub API docs for remove_restrictions_for_org
pub fn remove_restrictions_for_org(
&self,
org: &str
) -> Result<(), InteractionsRemoveRestrictionsForOrgError>
pub fn remove_restrictions_for_org(
&self,
org: &str
) -> Result<(), InteractionsRemoveRestrictionsForOrgError>
Remove interaction restrictions for an organization
Removes all interaction restrictions from public repositories in the given organization. You must be an organization owner to remove restrictions.
GitHub API docs for remove_restrictions_for_org
pub async fn remove_restrictions_for_repo_async(
&self,
owner: &str,
repo: &str
) -> Result<(), InteractionsRemoveRestrictionsForRepoError>
pub async fn remove_restrictions_for_repo_async(
&self,
owner: &str,
repo: &str
) -> Result<(), InteractionsRemoveRestrictionsForRepoError>
Remove interaction restrictions for a repository
Removes all interaction restrictions from the given repository. You must have owner or admin access to remove restrictions. If the interaction limit is set for the user or organization that owns this repository, you will receive a 409 Conflict
response and will not be able to use this endpoint to change the interaction limit for a single repository.
GitHub API docs for remove_restrictions_for_repo
pub fn remove_restrictions_for_repo(
&self,
owner: &str,
repo: &str
) -> Result<(), InteractionsRemoveRestrictionsForRepoError>
pub fn remove_restrictions_for_repo(
&self,
owner: &str,
repo: &str
) -> Result<(), InteractionsRemoveRestrictionsForRepoError>
Remove interaction restrictions for a repository
Removes all interaction restrictions from the given repository. You must have owner or admin access to remove restrictions. If the interaction limit is set for the user or organization that owns this repository, you will receive a 409 Conflict
response and will not be able to use this endpoint to change the interaction limit for a single repository.
GitHub API docs for remove_restrictions_for_repo
Set interaction restrictions for your public repositories
Temporarily restricts which type of GitHub user can interact with your public repositories. Setting the interaction limit at the user level will overwrite any interaction limits that are set for individual repositories owned by the user.
GitHub API docs for set_restrictions_for_authenticated_user
Set interaction restrictions for your public repositories
Temporarily restricts which type of GitHub user can interact with your public repositories. Setting the interaction limit at the user level will overwrite any interaction limits that are set for individual repositories owned by the user.
GitHub API docs for set_restrictions_for_authenticated_user
pub async fn set_restrictions_for_org_async(
&self,
org: &str,
body: PutInteractionsSetRestrictionsForAuthenticatedUser
) -> Result<InteractionLimitResponse, InteractionsSetRestrictionsForOrgError>
pub async fn set_restrictions_for_org_async(
&self,
org: &str,
body: PutInteractionsSetRestrictionsForAuthenticatedUser
) -> Result<InteractionLimitResponse, InteractionsSetRestrictionsForOrgError>
Set interaction restrictions for an organization
Temporarily restricts interactions to a certain type of GitHub user in any public repository in the given organization. You must be an organization owner to set these restrictions. Setting the interaction limit at the organization level will overwrite any interaction limits that are set for individual repositories owned by the organization.
GitHub API docs for set_restrictions_for_org
pub fn set_restrictions_for_org(
&self,
org: &str,
body: PutInteractionsSetRestrictionsForAuthenticatedUser
) -> Result<InteractionLimitResponse, InteractionsSetRestrictionsForOrgError>
pub fn set_restrictions_for_org(
&self,
org: &str,
body: PutInteractionsSetRestrictionsForAuthenticatedUser
) -> Result<InteractionLimitResponse, InteractionsSetRestrictionsForOrgError>
Set interaction restrictions for an organization
Temporarily restricts interactions to a certain type of GitHub user in any public repository in the given organization. You must be an organization owner to set these restrictions. Setting the interaction limit at the organization level will overwrite any interaction limits that are set for individual repositories owned by the organization.
GitHub API docs for set_restrictions_for_org
pub async fn set_restrictions_for_repo_async(
&self,
owner: &str,
repo: &str,
body: PutInteractionsSetRestrictionsForAuthenticatedUser
) -> Result<InteractionLimitResponse, InteractionsSetRestrictionsForRepoError>
pub async fn set_restrictions_for_repo_async(
&self,
owner: &str,
repo: &str,
body: PutInteractionsSetRestrictionsForAuthenticatedUser
) -> Result<InteractionLimitResponse, InteractionsSetRestrictionsForRepoError>
Set interaction restrictions for a repository
Temporarily restricts interactions to a certain type of GitHub user within the given repository. You must have owner or admin access to set these restrictions. If an interaction limit is set for the user or organization that owns this repository, you will receive a 409 Conflict
response and will not be able to use this endpoint to change the interaction limit for a single repository.
GitHub API docs for set_restrictions_for_repo
pub fn set_restrictions_for_repo(
&self,
owner: &str,
repo: &str,
body: PutInteractionsSetRestrictionsForAuthenticatedUser
) -> Result<InteractionLimitResponse, InteractionsSetRestrictionsForRepoError>
pub fn set_restrictions_for_repo(
&self,
owner: &str,
repo: &str,
body: PutInteractionsSetRestrictionsForAuthenticatedUser
) -> Result<InteractionLimitResponse, InteractionsSetRestrictionsForRepoError>
Set interaction restrictions for a repository
Temporarily restricts interactions to a certain type of GitHub user within the given repository. You must have owner or admin access to set these restrictions. If an interaction limit is set for the user or organization that owns this repository, you will receive a 409 Conflict
response and will not be able to use this endpoint to change the interaction limit for a single repository.
GitHub API docs for set_restrictions_for_repo