pub struct GitPullRequestCompletionOptions {
pub auto_complete_ignore_config_ids: Vec<i32>,
pub bypass_policy: Option<bool>,
pub bypass_reason: Option<String>,
pub delete_source_branch: Option<bool>,
pub merge_commit_message: Option<String>,
pub merge_strategy: Option<MergeStrategy>,
pub squash_merge: Option<bool>,
pub transition_work_items: Option<bool>,
pub triggered_by_auto_complete: Option<bool>,
}Expand description
Preferences about how the pull request should be completed.
Fields
auto_complete_ignore_config_ids: Vec<i32>List of any policy configuration Id’s which auto-complete should not wait for. Only applies to optional policies (isBlocking == false). Auto-complete always waits for required policies (isBlocking == true).
bypass_policy: Option<bool>If true, policies will be explicitly bypassed while the pull request is completed.
bypass_reason: Option<String>If policies are bypassed, this reason is stored as to why bypass was used.
delete_source_branch: Option<bool>If true, the source branch of the pull request will be deleted after completion.
merge_commit_message: Option<String>If set, this will be used as the commit message of the merge commit.
merge_strategy: Option<MergeStrategy>Specify the strategy used to merge the pull request during completion. If MergeStrategy is not set to any value, a no-FF merge will be created if SquashMerge == false. If MergeStrategy is not set to any value, the pull request commits will be squashed if SquashMerge == true. The SquashMerge property is deprecated. It is recommended that you explicitly set MergeStrategy in all cases. If an explicit value is provided for MergeStrategy, the SquashMerge property will be ignored.
squash_merge: Option<bool>SquashMerge is deprecated. You should explicitly set the value of MergeStrategy. If MergeStrategy is set to any value, the SquashMerge value will be ignored. If MergeStrategy is not set, the merge strategy will be no-fast-forward if this flag is false, or squash if true.
transition_work_items: Option<bool>If true, we will attempt to transition any work items linked to the pull request into the next logical state (i.e. Active -> Resolved)
triggered_by_auto_complete: Option<bool>If true, the current completion attempt was triggered via auto-complete. Used internally.
Implementations
Trait Implementations
sourceimpl Clone for GitPullRequestCompletionOptions
impl Clone for GitPullRequestCompletionOptions
sourcefn clone(&self) -> GitPullRequestCompletionOptions
fn clone(&self) -> GitPullRequestCompletionOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Default for GitPullRequestCompletionOptions
impl Default for GitPullRequestCompletionOptions
sourcefn default() -> GitPullRequestCompletionOptions
fn default() -> GitPullRequestCompletionOptions
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for GitPullRequestCompletionOptions
impl<'de> Deserialize<'de> for GitPullRequestCompletionOptions
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<GitPullRequestCompletionOptions> for GitPullRequestCompletionOptions
impl PartialEq<GitPullRequestCompletionOptions> for GitPullRequestCompletionOptions
sourcefn eq(&self, other: &GitPullRequestCompletionOptions) -> bool
fn eq(&self, other: &GitPullRequestCompletionOptions) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &GitPullRequestCompletionOptions) -> bool
fn ne(&self, other: &GitPullRequestCompletionOptions) -> bool
This method tests for !=.
impl StructuralPartialEq for GitPullRequestCompletionOptions
Auto Trait Implementations
impl RefUnwindSafe for GitPullRequestCompletionOptions
impl Send for GitPullRequestCompletionOptions
impl Sync for GitPullRequestCompletionOptions
impl Unpin for GitPullRequestCompletionOptions
impl UnwindSafe for GitPullRequestCompletionOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more