#[non_exhaustive]pub struct Issue {
pub number: u64,
pub title: String,
pub state: String,
pub body: String,
pub url: String,
}Expand description
An issue (glab issue list/view --output json). The fields are GitLab’s
REST Issue object, which glab passes through unchanged. Mirrors
MergeRequest’s shape (project-scoped iid, tolerant optional fields).
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.number: u64The project-scoped id (iid) — the <id> other glab issue
commands take. (GitLab’s global id is deliberately not surfaced.)
Surfaced through the public field name number for cross-forge
consistency with vcs-github’s
Issue.
title: StringIssue title.
state: StringState, e.g. "opened", "closed" (GitLab’s lower-case spelling — note
it is "opened", not "open").
body: StringIssue body (GitLab’s description, markdown). glab issue list does
include it, but it can be absent/null, so it is tolerant.
url: StringWeb URL.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Issue
impl<'de> Deserialize<'de> for Issue
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 Issue
impl StructuralPartialEq for Issue
Auto Trait Implementations§
impl Freeze for Issue
impl RefUnwindSafe for Issue
impl Send for Issue
impl Sync for Issue
impl Unpin for Issue
impl UnsafeUnpin for Issue
impl UnwindSafe for Issue
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