Struct hubcaps::search::IssuesItem
source · pub struct IssuesItem {Show 21 fields
pub url: String,
pub repository_url: String,
pub labels_url: String,
pub comments_url: String,
pub events_url: String,
pub html_url: String,
pub id: u64,
pub number: u64,
pub title: String,
pub user: User,
pub labels: Vec<Label>,
pub state: String,
pub locked: bool,
pub assignee: Option<User>,
pub assignees: Vec<User>,
pub comments: u64,
pub created_at: String,
pub updated_at: String,
pub closed_at: Option<String>,
pub pull_request: Option<PullRequestInfo>,
pub body: Option<String>,
}
Expand description
May reporesent a Github Issue or PullRequest depending on the type of search
Fields
url: String
repository_url: String
labels_url: String
comments_url: String
events_url: String
html_url: String
id: u64
number: u64
title: String
user: User
labels: Vec<Label>
state: String
locked: bool
assignee: Option<User>
assignees: Vec<User>
comments: u64
created_at: String
updated_at: String
closed_at: Option<String>
pull_request: Option<PullRequestInfo>
body: Option<String>
Implementations
sourceimpl IssuesItem
impl IssuesItem
sourcepub fn repo_tuple(&self) -> (String, String)
pub fn repo_tuple(&self) -> (String, String)
returns a tuple of (repo owner name, repo name) associated with this issue
Trait Implementations
sourceimpl Debug for IssuesItem
impl Debug for IssuesItem
sourceimpl<'de> Deserialize<'de> for IssuesItem
impl<'de> Deserialize<'de> for IssuesItem
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for IssuesItem
impl Send for IssuesItem
impl Sync for IssuesItem
impl Unpin for IssuesItem
impl UnwindSafe for IssuesItem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more