pub struct MergeRequest {
pub commit_message: Option<String>,
pub title: Option<String>,
pub propose_threshold: Option<u32>,
pub description: HashMap<Option<DescriptionFormat>, String>,
pub auto_merge: Option<bool>,
}Expand description
Merge request configuration
Fields§
§commit_message: Option<String>Commit message template
title: Option<String>Title template
propose_threshold: Option<u32>Value threshold for proposing the merge request
description: HashMap<Option<DescriptionFormat>, String>Description templates
auto_merge: Option<bool>Whether to enable automatic merge
Implementations§
Source§impl MergeRequest
impl MergeRequest
Sourcepub fn render_commit_message(&self, context: &Context) -> Result<Option<String>>
pub fn render_commit_message(&self, context: &Context) -> Result<Option<String>>
Render a commit message
Sourcepub fn render_title(&self, context: &Context) -> Result<Option<String>>
pub fn render_title(&self, context: &Context) -> Result<Option<String>>
Render the title of the merge request
Sourcepub fn render_description(
&self,
description_format: DescriptionFormat,
context: &Context,
) -> Result<Option<String>>
pub fn render_description( &self, description_format: DescriptionFormat, context: &Context, ) -> Result<Option<String>>
Render the description of the merge request
Trait Implementations§
Source§impl Clone for MergeRequest
impl Clone for MergeRequest
Source§fn clone(&self) -> MergeRequest
fn clone(&self) -> MergeRequest
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 MergeRequest
impl Debug for MergeRequest
Source§impl<'de> Deserialize<'de> for MergeRequest
impl<'de> Deserialize<'de> for MergeRequest
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
Source§impl PartialEq for MergeRequest
impl PartialEq for MergeRequest
Source§impl Serialize for MergeRequest
impl Serialize for MergeRequest
impl Eq for MergeRequest
impl StructuralPartialEq for MergeRequest
Auto Trait Implementations§
impl Freeze for MergeRequest
impl RefUnwindSafe for MergeRequest
impl Send for MergeRequest
impl Sync for MergeRequest
impl Unpin for MergeRequest
impl UnsafeUnpin for MergeRequest
impl UnwindSafe for MergeRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.