[−][src]Struct hubcaps::branches::Branches
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]
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]
&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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,