pub struct PullRequestMergeSettings {
pub is_merge_queue_enabled: Option<bool>,
pub squash_merge_allowed: Option<bool>,
pub auto_merge_allowed: Option<bool>,
pub rebase_merge_allowed: Option<bool>,
pub merge_commit_allowed: Option<bool>,
pub delete_branch_on_merge: Option<bool>,
pub merge_queue_merge_method: Option<PullRequestMergeMethod>,
}Expand description
Internal Merge settings for a pull request
Fields§
§is_merge_queue_enabled: Option<bool>Whether merge queue is enabled for this repository.
squash_merge_allowed: Option<bool>Whether squash merge is allowed for this pull request’s repository.
auto_merge_allowed: Option<bool>Whether auto-merge is allowed for the PR’s repository.
rebase_merge_allowed: Option<bool>Whether rebase merge is allowed for pull requests PR’s repository.
merge_commit_allowed: Option<bool>Whether merge commits are allowed for pull requests PR’s repository.
delete_branch_on_merge: Option<bool>Whether the branch will be deleted when the pull request is merged.
merge_queue_merge_method: Option<PullRequestMergeMethod>The method used to merge a pull request.
Trait Implementations§
Source§impl Clone for PullRequestMergeSettings
impl Clone for PullRequestMergeSettings
Source§fn clone(&self) -> PullRequestMergeSettings
fn clone(&self) -> PullRequestMergeSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PullRequestMergeSettings
impl Debug for PullRequestMergeSettings
Source§impl Default for PullRequestMergeSettings
impl Default for PullRequestMergeSettings
Source§fn default() -> PullRequestMergeSettings
fn default() -> PullRequestMergeSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PullRequestMergeSettingswhere
PullRequestMergeSettings: Default,
impl<'de> Deserialize<'de> for PullRequestMergeSettingswhere
PullRequestMergeSettings: Default,
Source§fn 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
Auto Trait Implementations§
impl Freeze for PullRequestMergeSettings
impl RefUnwindSafe for PullRequestMergeSettings
impl Send for PullRequestMergeSettings
impl Sync for PullRequestMergeSettings
impl Unpin for PullRequestMergeSettings
impl UnwindSafe for PullRequestMergeSettings
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