pub struct ReleaseData {
pub id: u64,
pub tag_name: String,
pub name: Option<String>,
pub body: Option<String>,
pub draft: bool,
pub prerelease: bool,
pub author: Option<UserSummary>,
pub created_at: DateTime<Utc>,
pub published_at: Option<DateTime<Utc>>,
pub url: String,
}Expand description
Release 数据。
由平台实现填充并返回给上层命令。字段命名与 gh release
CLI 输出的 JSON 字段对齐(camelCase)。
Fields§
§id: u64Release 的 numeric ID(list 命令可能不包含此字段)。
tag_name: String关联的 Git tag 名。
name: Option<String>Release 标题(可选)。
body: Option<String>Release 正文(Markdown,list 命令可能不包含此字段)。
draft: bool是否为草稿 Release。
prerelease: bool是否为预发布版本。
Release 作者(list 命令可能不包含此字段)。
created_at: DateTime<Utc>创建时间(UTC)。
published_at: Option<DateTime<Utc>>发布时间(UTC),草稿 Release 为 None。
url: StringRelease 的 Web URL(list 命令可能不包含此字段)。
Trait Implementations§
Source§impl Clone for ReleaseData
impl Clone for ReleaseData
Source§fn clone(&self) -> ReleaseData
fn clone(&self) -> ReleaseData
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 ReleaseData
impl Debug for ReleaseData
Source§impl<'de> Deserialize<'de> for ReleaseData
impl<'de> Deserialize<'de> for ReleaseData
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 Freeze for ReleaseData
impl RefUnwindSafe for ReleaseData
impl Send for ReleaseData
impl Sync for ReleaseData
impl Unpin for ReleaseData
impl UnsafeUnpin for ReleaseData
impl UnwindSafe for ReleaseData
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