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 new<U, R>(github: &'a Github, owner: U, repo: R) -> Self where
U: Into<String>,
R: Into<String>,
U: Into<String>,
R: Into<String>,
create a new instance of branches
fn list(&self) -> Result<Vec<Branch>>
list of branches for this repo
fn iter(&self) -> Result<Iter<Vec<Branch>, Branch>>
provides an iterator over branches for this repo
fn get<B>(&self, branch: B) -> Result<Branch> where
B: Into<String>,
B: Into<String>,
gets a branch for this repo by name
fn protection<B>(&self, branch: B, pro: &Protection) -> Result<Branch> where
B: Into<String>,
B: Into<String>,
update branch production for a given branch