#[non_exhaustive]pub struct Release {
pub tag_name: String,
pub name: String,
pub body: String,
pub url: String,
pub published_at: String,
pub is_draft: bool,
pub is_prerelease: bool,
pub is_latest: bool,
}Expand description
A release (gh release list/view --json …).
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.tag_name: StringThe release’s tag.
name: StringRelease title (may be empty).
body: StringRelease notes (markdown); empty from release_list, which doesn’t
fetch it.
url: StringWeb URL; empty from release_list, which doesn’t fetch it.
published_at: StringPublication timestamp (ISO 8601); empty for a draft.
is_draft: booltrue for an unpublished draft.
is_prerelease: booltrue for a prerelease.
is_latest: booltrue for the latest release. Only release_list reports this field;
from release_view it defaults to false.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Release
impl<'de> Deserialize<'de> for Release
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
impl Eq for Release
impl StructuralPartialEq for Release
Auto Trait Implementations§
impl Freeze for Release
impl RefUnwindSafe for Release
impl Send for Release
impl Sync for Release
impl Unpin for Release
impl UnsafeUnpin for Release
impl UnwindSafe for Release
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