Struct hubcaps::branches::Branches
[−]
[src]
pub struct Branches<'a> { /* fields omitted */ }
reference to gists associated with a github user
Methods
impl<'a> Branches<'a>
[src]
fn list(&self) -> Result<Vec<Branch>>
[src]
list of branches for this repo
fn iter(&self) -> Result<Iter<Vec<Branch>, Branch>>
[src]
provides an iterator over branches for this repo
fn get<B>(&self, branch: B) -> Result<Branch> where
B: Into<String>,
[src]
B: Into<String>,
gets a branch for this repo by name
fn protection<B>(&self, branch: B, pro: &Protection) -> Result<Protection> where
B: Into<String>,
[src]
B: Into<String>,
update branch production for a given branch
https://developer.github.com/v3/repos/branches/#update-branch-protection