#[non_exhaustive]pub struct MergeRequest {
pub iid: u64,
pub title: String,
pub state: String,
pub source_branch: String,
pub target_branch: String,
pub web_url: String,
pub draft: bool,
}Expand description
A merge request (glab mr list/view --output json). The fields are GitLab’s
REST MergeRequest object, which glab passes through unchanged.
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.iid: u64The project-scoped id (iid) — the <id> other glab mr commands
take. (GitLab’s global id is deliberately not surfaced.)
title: StringMR title.
state: StringState, e.g. "opened", "closed", "merged", "locked" (GitLab’s
lower-case spelling — note it is "opened", not "open").
source_branch: StringSource (head) branch name.
target_branch: StringTarget (base) branch name.
web_url: StringWeb URL.
draft: boolWhether the MR is a draft (GitLab’s draft; the deprecated
work_in_progress is not read).
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 (const: unstable) · 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
impl Eq for MergeRequest
Source§impl PartialEq for MergeRequest
impl PartialEq for MergeRequest
Source§fn eq(&self, other: &MergeRequest) -> bool
fn eq(&self, other: &MergeRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.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