#[non_exhaustive]pub struct ForgeIssue {
pub number: u64,
pub title: String,
pub state: ForgeIssueState,
pub body: String,
pub url: String,
}Expand description
An issue, unified across the three forges.
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 issue number a caller passes to the other operations (GitHub/Gitea
number, GitLab iid).
title: StringTitle.
state: ForgeIssueStateNormalised state (see ForgeIssueState).
body: StringIssue body (markdown). Best-effort: GitHub’s lean issue_list
doesn’t fetch it (empty there); issue_view
fills it on every forge.
url: StringWeb URL. Best-effort: empty from GitHub’s lean issue_list;
issue_view fills it on every forge.
Trait Implementations§
Source§impl Clone for ForgeIssue
impl Clone for ForgeIssue
Source§fn clone(&self) -> ForgeIssue
fn clone(&self) -> ForgeIssue
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 ForgeIssue
impl Debug for ForgeIssue
impl Eq for ForgeIssue
Source§impl PartialEq for ForgeIssue
impl PartialEq for ForgeIssue
Source§fn eq(&self, other: &ForgeIssue) -> bool
fn eq(&self, other: &ForgeIssue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ForgeIssue
impl Serialize for ForgeIssue
impl StructuralPartialEq for ForgeIssue
Auto Trait Implementations§
impl Freeze for ForgeIssue
impl RefUnwindSafe for ForgeIssue
impl Send for ForgeIssue
impl Sync for ForgeIssue
impl Unpin for ForgeIssue
impl UnsafeUnpin for ForgeIssue
impl UnwindSafe for ForgeIssue
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