pub struct IssueData {
pub number: u64,
pub title: String,
pub body: Option<String>,
pub state: State,
pub labels: Vec<Label>,
pub author: UserSummary,
pub assignees: Vec<UserSummary>,
pub milestone: Option<MilestoneRef>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub url: String,
}Expand description
Issue 数据。
由平台实现填充并返回给上层命令。字段命名与 GitHub CLI 输出的 JSON 字段对齐(camelCase)。
number 使用自定义反序列化兼容 GitCode CLI 返回的字符串格式。
Fields§
§number: u64Issue 编号(平台内唯一)。
title: StringIssue 标题。
body: Option<String>Issue 正文(Markdown)。
state: StateIssue 当前状态。
labels: Vec<Label>附加的标签列表。
Issue 作者。
assignees: Vec<UserSummary>被指派的成员列表。
milestone: Option<MilestoneRef>The milestone this issue is attached to, if any.
created_at: Option<DateTime<Utc>>创建时间(UTC)。API 未返回该字段时为 None——绝不用当前时间伪造。
updated_at: Option<DateTime<Utc>>最近更新时间(UTC)。API 未返回该字段时为 None——绝不用当前时间伪造。
url: StringIssue 的 Web URL。
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IssueData
impl<'de> Deserialize<'de> for IssueData
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
Auto Trait Implementations§
impl Forget for IssueData
impl Freeze for IssueData
impl Move for IssueData
impl RefUnwindSafe for IssueData
impl Send for IssueData
impl Sync for IssueData
impl Unpin for IssueData
impl UnsafeUnpin for IssueData
impl UnwindSafe for IssueData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more