#[non_exhaustive]pub struct MrCreate {
pub title: String,
pub body: String,
pub source: Option<String>,
pub target: Option<String>,
}Expand description
Options for GitLabApi::mr_create (glab mr create).
#[non_exhaustive], so build it through MrCreate::new and the chained
setters rather than a struct literal.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.title: StringThe MR title (--title).
body: StringThe MR description (--description).
source: Option<String>The source branch (--source-branch); None = the current branch.
target: Option<String>The target branch (--target-branch); None = the project default.
Implementations§
Source§impl MrCreate
impl MrCreate
Sourcepub fn new(title: impl Into<String>, body: impl Into<String>) -> Self
pub fn new(title: impl Into<String>, body: impl Into<String>) -> Self
An MR with title and body, source/target left to glab’s defaults
(current branch → project default).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MrCreate
impl RefUnwindSafe for MrCreate
impl Send for MrCreate
impl Sync for MrCreate
impl Unpin for MrCreate
impl UnsafeUnpin for MrCreate
impl UnwindSafe for MrCreate
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