#[non_exhaustive]pub struct PullRequestSourceReferenceUpdatedEventMetadata {
pub repository_name: Option<String>,
pub before_commit_id: Option<String>,
pub after_commit_id: Option<String>,
pub merge_base: Option<String>,
}Expand description
Information about an update to the source branch of a pull request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.repository_name: Option<String>The name of the repository where the pull request was updated.
before_commit_id: Option<String>The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was updated.
after_commit_id: Option<String>The full commit ID of the commit in the source branch that was the tip of the branch at the time the pull request was updated.
merge_base: Option<String>The commit ID of the most recent commit that the source branch and the destination branch have in common.
Implementations§
source§impl PullRequestSourceReferenceUpdatedEventMetadata
impl PullRequestSourceReferenceUpdatedEventMetadata
sourcepub fn repository_name(&self) -> Option<&str>
pub fn repository_name(&self) -> Option<&str>
The name of the repository where the pull request was updated.
sourcepub fn before_commit_id(&self) -> Option<&str>
pub fn before_commit_id(&self) -> Option<&str>
The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was updated.
sourcepub fn after_commit_id(&self) -> Option<&str>
pub fn after_commit_id(&self) -> Option<&str>
The full commit ID of the commit in the source branch that was the tip of the branch at the time the pull request was updated.
sourcepub fn merge_base(&self) -> Option<&str>
pub fn merge_base(&self) -> Option<&str>
The commit ID of the most recent commit that the source branch and the destination branch have in common.
source§impl PullRequestSourceReferenceUpdatedEventMetadata
impl PullRequestSourceReferenceUpdatedEventMetadata
sourcepub fn builder() -> PullRequestSourceReferenceUpdatedEventMetadataBuilder
pub fn builder() -> PullRequestSourceReferenceUpdatedEventMetadataBuilder
Creates a new builder-style object to manufacture PullRequestSourceReferenceUpdatedEventMetadata.
Trait Implementations§
source§impl Clone for PullRequestSourceReferenceUpdatedEventMetadata
impl Clone for PullRequestSourceReferenceUpdatedEventMetadata
source§fn clone(&self) -> PullRequestSourceReferenceUpdatedEventMetadata
fn clone(&self) -> PullRequestSourceReferenceUpdatedEventMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for PullRequestSourceReferenceUpdatedEventMetadata
impl PartialEq for PullRequestSourceReferenceUpdatedEventMetadata
source§fn eq(&self, other: &PullRequestSourceReferenceUpdatedEventMetadata) -> bool
fn eq(&self, other: &PullRequestSourceReferenceUpdatedEventMetadata) -> bool
self and other values to be equal, and is used
by ==.