Struct hubcaps::branches::Branches [−][src]
reference to gists associated with a github user
Methods
impl<C: Clone + Connect> Branches<C>
[src]
impl<C: Clone + Connect> Branches<C>
pub fn list(&self) -> Future<Vec<Branch>>
[src]
pub fn list(&self) -> Future<Vec<Branch>>
list of branches for this repo
pub fn iter(&self) -> Stream<Branch>
[src]
pub fn iter(&self) -> Stream<Branch>
provides an stream over branches for this repo
pub fn get<B>(&self, branch: B) -> Future<Branch> where
B: Into<String>,
[src]
pub fn get<B>(&self, branch: B) -> Future<Branch> where
B: Into<String>,
gets a branch for this repo by name
pub fn protection<B>(
&self,
branch: B,
pro: &Protection
) -> Future<ProtectionState> where
B: Into<String>,
[src]
pub fn protection<B>(
&self,
branch: B,
pro: &Protection
) -> Future<ProtectionState> where
B: Into<String>,
update branch production for a given branch
https://developer.github.com/v3/repos/branches/#update-branch-protection