[][src]Struct hubcaps::branches::Branches

pub struct Branches { /* fields omitted */ }

reference to gists associated with a github user

Implementations

impl Branches[src]

pub fn list(&self) -> Future<Vec<Branch>>[src]

list of branches for this repo

pub fn iter(&self) -> Stream<Branch>[src]

provides an stream over branches for this repo

pub fn get<B>(&self, branch: B) -> Future<Branch> where
    B: Into<String>, 
[src]

gets a branch for this repo by name

pub fn protection<B>(
    &self,
    branch: B,
    pro: &Protection
) -> Future<ProtectionState> where
    B: Into<String>, 
[src]

update branch production for a given branch

https://developer.github.com/v3/repos/branches/#update-branch-protection

Auto Trait Implementations

impl !RefUnwindSafe for Branches

impl Send for Branches

impl Sync for Branches

impl Unpin for Branches

impl !UnwindSafe for Branches

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.