#[non_exhaustive]pub struct PullRequestCreatedEventMetadataBuilder { /* private fields */ }Expand description
A builder for PullRequestCreatedEventMetadata.
Implementations§
source§impl PullRequestCreatedEventMetadataBuilder
impl PullRequestCreatedEventMetadataBuilder
sourcepub fn repository_name(self, input: impl Into<String>) -> Self
pub fn repository_name(self, input: impl Into<String>) -> Self
The name of the repository where the pull request was created.
sourcepub fn set_repository_name(self, input: Option<String>) -> Self
pub fn set_repository_name(self, input: Option<String>) -> Self
The name of the repository where the pull request was created.
sourcepub fn get_repository_name(&self) -> &Option<String>
pub fn get_repository_name(&self) -> &Option<String>
The name of the repository where the pull request was created.
sourcepub fn source_commit_id(self, input: impl Into<String>) -> Self
pub fn source_commit_id(self, input: impl Into<String>) -> Self
The commit ID on the source branch used when the pull request was created.
sourcepub fn set_source_commit_id(self, input: Option<String>) -> Self
pub fn set_source_commit_id(self, input: Option<String>) -> Self
The commit ID on the source branch used when the pull request was created.
sourcepub fn get_source_commit_id(&self) -> &Option<String>
pub fn get_source_commit_id(&self) -> &Option<String>
The commit ID on the source branch used when the pull request was created.
sourcepub fn destination_commit_id(self, input: impl Into<String>) -> Self
pub fn destination_commit_id(self, input: impl Into<String>) -> Self
The commit ID of the tip of the branch specified as the destination branch when the pull request was created.
sourcepub fn set_destination_commit_id(self, input: Option<String>) -> Self
pub fn set_destination_commit_id(self, input: Option<String>) -> Self
The commit ID of the tip of the branch specified as the destination branch when the pull request was created.
sourcepub fn get_destination_commit_id(&self) -> &Option<String>
pub fn get_destination_commit_id(&self) -> &Option<String>
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, input: impl Into<String>) -> Self
pub fn merge_base(self, input: impl Into<String>) -> Self
The commit ID of the most recent commit that the source branch and the destination branch have in common.
sourcepub fn set_merge_base(self, input: Option<String>) -> Self
pub fn set_merge_base(self, input: Option<String>) -> Self
The commit ID of the most recent commit that the source branch and the destination branch have in common.
sourcepub fn get_merge_base(&self) -> &Option<String>
pub fn get_merge_base(&self) -> &Option<String>
The commit ID of the most recent commit that the source branch and the destination branch have in common.
sourcepub fn build(self) -> PullRequestCreatedEventMetadata
pub fn build(self) -> PullRequestCreatedEventMetadata
Consumes the builder and constructs a PullRequestCreatedEventMetadata.
Trait Implementations§
source§impl Clone for PullRequestCreatedEventMetadataBuilder
impl Clone for PullRequestCreatedEventMetadataBuilder
source§fn clone(&self) -> PullRequestCreatedEventMetadataBuilder
fn clone(&self) -> PullRequestCreatedEventMetadataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for PullRequestCreatedEventMetadataBuilder
impl Default for PullRequestCreatedEventMetadataBuilder
source§fn default() -> PullRequestCreatedEventMetadataBuilder
fn default() -> PullRequestCreatedEventMetadataBuilder
source§impl PartialEq for PullRequestCreatedEventMetadataBuilder
impl PartialEq for PullRequestCreatedEventMetadataBuilder
source§fn eq(&self, other: &PullRequestCreatedEventMetadataBuilder) -> bool
fn eq(&self, other: &PullRequestCreatedEventMetadataBuilder) -> bool
self and other values to be equal, and is used
by ==.