#[non_exhaustive]pub struct PullRequestCreatedEventMetadata {
pub repository_name: Option<String>,
pub source_commit_id: Option<String>,
pub destination_commit_id: Option<String>,
pub merge_base: Option<String>,
}Expand description
Metadata about the pull request that is used when comparing the pull request source with its destination.
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 created.
source_commit_id: Option<String>The commit ID on the source branch used when the pull request was created.
destination_commit_id: Option<String>The commit ID of the tip of the branch specified as the destination branch when the pull request was created.
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 PullRequestCreatedEventMetadata
impl PullRequestCreatedEventMetadata
sourcepub fn repository_name(&self) -> Option<&str>
pub fn repository_name(&self) -> Option<&str>
The name of the repository where the pull request was created.
sourcepub fn source_commit_id(&self) -> Option<&str>
pub fn source_commit_id(&self) -> Option<&str>
The commit ID on the source branch used when the pull request was created.
sourcepub fn destination_commit_id(&self) -> Option<&str>
pub fn destination_commit_id(&self) -> Option<&str>
The commit ID of the tip of the branch specified as the destination branch when the pull request was created.
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 PullRequestCreatedEventMetadata
impl PullRequestCreatedEventMetadata
sourcepub fn builder() -> PullRequestCreatedEventMetadataBuilder
pub fn builder() -> PullRequestCreatedEventMetadataBuilder
Creates a new builder-style object to manufacture PullRequestCreatedEventMetadata.
Trait Implementations§
source§impl Clone for PullRequestCreatedEventMetadata
impl Clone for PullRequestCreatedEventMetadata
source§fn clone(&self) -> PullRequestCreatedEventMetadata
fn clone(&self) -> PullRequestCreatedEventMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for PullRequestCreatedEventMetadata
impl PartialEq for PullRequestCreatedEventMetadata
source§fn eq(&self, other: &PullRequestCreatedEventMetadata) -> bool
fn eq(&self, other: &PullRequestCreatedEventMetadata) -> bool
self and other values to be equal, and is used
by ==.