#[non_exhaustive]pub struct IssueSummary {
pub identifier: String,
pub title: String,
pub url: String,
pub state: IssueState,
pub tracker: bool,
pub archived: bool,
pub assignee: Option<String>,
}Expand description
The few fields a reference tooltip or link shows.
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.identifier: String§title: String§url: StringThe issue’s page, for opening it outside Subspace.
state: IssueState§tracker: bool§archived: bool§assignee: Option<String>The assignee’s display name.
Implementations§
Source§impl IssueSummary
impl IssueSummary
pub fn new(identifier: &str, title: &str, url: &str, state: IssueState) -> Self
Sourcepub fn with_markers(self, tracker: bool, archived: bool) -> Self
pub fn with_markers(self, tracker: bool, archived: bool) -> Self
Whether the issue is a tracker and whether it is archived.
pub fn with_assignee(self, assignee: Option<&str>) -> Self
Trait Implementations§
Source§impl Clone for IssueSummary
impl Clone for IssueSummary
impl Eq for IssueSummary
Source§impl PartialEq for IssueSummary
impl PartialEq for IssueSummary
impl StructuralPartialEq for IssueSummary
Auto Trait Implementations§
impl Forget for IssueSummary
impl Freeze for IssueSummary
impl Move for IssueSummary
impl RefUnwindSafe for IssueSummary
impl Send for IssueSummary
impl Sync for IssueSummary
impl Unpin for IssueSummary
impl UnsafeUnpin for IssueSummary
impl UnwindSafe for IssueSummary
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