#[non_exhaustive]pub struct PullRequestInfo {
pub head_sha: String,
pub base_ref: String,
pub base_sha: String,
pub open: bool,
pub head_ref: String,
pub head_repo_id: Option<u64>,
pub base_repo_id: Option<u64>,
pub author_login: Option<String>,
pub author_id: Option<u64>,
}Expand description
A pull request as GitHub reports it now.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.head_sha: StringIts head commit.
base_ref: StringIts base branch, without refs/heads/.
base_sha: StringThe base branch’s tip.
open: boolOpen (a closed or merged one gets no new check).
head_ref: StringIts head branch, without refs/heads/.
head_repo_id: Option<u64>The repository its head branch is in; None when GitHub reports
none (a deleted fork).
base_repo_id: Option<u64>The repository it merges into.
The login of the account that opened it.
That account’s numeric id.
Trait Implementations§
Source§impl Clone for PullRequestInfo
impl Clone for PullRequestInfo
Source§impl Debug for PullRequestInfo
impl Debug for PullRequestInfo
impl Eq for PullRequestInfo
Source§impl PartialEq for PullRequestInfo
impl PartialEq for PullRequestInfo
impl StructuralPartialEq for PullRequestInfo
Auto Trait Implementations§
impl Freeze for PullRequestInfo
impl RefUnwindSafe for PullRequestInfo
impl Send for PullRequestInfo
impl Sync for PullRequestInfo
impl Unpin for PullRequestInfo
impl UnsafeUnpin for PullRequestInfo
impl UnwindSafe for PullRequestInfo
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.