Struct octocrab::teams::TeamRepoHandler [−][src]
pub struct TeamRepoHandler<'octo> { /* fields omitted */ }
Expand description
Handler for managing a team’s repositories through GitHub’s teams API.
Created with TeamHandler::repos
Implementations
pub async fn check_manages(
&self,
repo_owner: impl Into<String>,
repo_name: impl Into<String>
) -> Result<Repository>
[src]
pub async fn check_manages(
&self,
repo_owner: impl Into<String>,
repo_name: impl Into<String>
) -> Result<Repository>
[src]Checks if a team manages a repository, returning the repository if it does.
let manages_repo = octocrab::instance() .teams("owner") .repos("team") .check_manages("owner", "repo") .await .is_ok();
Updates a team’s permissions for a repository.
use octocrab::params; octocrab::instance() .teams("owner") .repos("team") .add_or_update("owner", "repo", params::teams::Permission::Maintain) .await?;
Auto Trait Implementations
impl<'octo> !RefUnwindSafe for TeamRepoHandler<'octo>
impl<'octo> Send for TeamRepoHandler<'octo>
impl<'octo> Sync for TeamRepoHandler<'octo>
impl<'octo> Unpin for TeamRepoHandler<'octo>
impl<'octo> !UnwindSafe for TeamRepoHandler<'octo>