pub struct PullRequest {
pub by_user: bool,
pub head_repository: Option<String>,
pub head_branch: String,
}Expand description
A pull request, as GET /repos/{owner}/{repo}/pulls/{number} says.
Fields§
§by_user: boolWhether a person, not a bot or an app, opened it: its user is of type User.
head_repository: Option<String>owner/name of the repository its head branch is in; None once that is deleted.
head_branch: StringIts head branch.
Trait Implementations§
Source§impl Clone for PullRequest
impl Clone for PullRequest
Source§impl Debug for PullRequest
impl Debug for PullRequest
impl Eq for PullRequest
Source§impl PartialEq for PullRequest
impl PartialEq for PullRequest
impl StructuralPartialEq for PullRequest
Auto Trait Implementations§
impl Freeze for PullRequest
impl RefUnwindSafe for PullRequest
impl Send for PullRequest
impl Sync for PullRequest
impl Unpin for PullRequest
impl UnsafeUnpin for PullRequest
impl UnwindSafe for PullRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.