Struct githuber::api::commits::ListBranchesForHeadCommit
source · pub struct ListBranchesForHeadCommit<'a> {
pub owner: &'a str,
pub repo: &'a str,
pub commit_sha: &'a str,
}
Expand description
GitHub reference(s):
Fields
owner: &'a str
repo: &'a str
commit_sha: &'a str
Implementations
sourceimpl<'a> ListBranchesForHeadCommit<'a>
impl<'a> ListBranchesForHeadCommit<'a>
sourcepub fn new(owner: &'a str, repo: &'a str, commit_sha: &'a str) -> Self
pub fn new(owner: &'a str, repo: &'a str, commit_sha: &'a str) -> Self
Build a ListBranchesForHeadCommit
instance.
sourcepub fn commit_sha(self, commit_sha: &'a str) -> Self
pub fn commit_sha(self, commit_sha: &'a str) -> Self
Set a new commit_sha
.
Trait Implementations
sourceimpl<'a> Api for ListBranchesForHeadCommit<'a>
impl<'a> Api for ListBranchesForHeadCommit<'a>
sourceimpl<'a> ApiExt for ListBranchesForHeadCommit<'a>
impl<'a> ApiExt for ListBranchesForHeadCommit<'a>
sourceimpl<'a> Clone for ListBranchesForHeadCommit<'a>
impl<'a> Clone for ListBranchesForHeadCommit<'a>
sourcefn clone(&self) -> ListBranchesForHeadCommit<'a>
fn clone(&self) -> ListBranchesForHeadCommit<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for ListBranchesForHeadCommit<'a>
impl<'a> Debug for ListBranchesForHeadCommit<'a>
sourceimpl<'a> PartialEq<ListBranchesForHeadCommit<'a>> for ListBranchesForHeadCommit<'a>
impl<'a> PartialEq<ListBranchesForHeadCommit<'a>> for ListBranchesForHeadCommit<'a>
sourcefn eq(&self, other: &ListBranchesForHeadCommit<'a>) -> bool
fn eq(&self, other: &ListBranchesForHeadCommit<'a>) -> bool
impl<'a> Eq for ListBranchesForHeadCommit<'a>
impl<'a> StructuralEq for ListBranchesForHeadCommit<'a>
impl<'a> StructuralPartialEq for ListBranchesForHeadCommit<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ListBranchesForHeadCommit<'a>
impl<'a> Send for ListBranchesForHeadCommit<'a>
impl<'a> Sync for ListBranchesForHeadCommit<'a>
impl<'a> Unpin for ListBranchesForHeadCommit<'a>
impl<'a> UnwindSafe for ListBranchesForHeadCommit<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more