#[non_exhaustive]pub struct Release {
pub tag_name: String,
pub name: String,
pub body: Option<String>,
pub url: Option<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
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/null).
body: Option<String>Release notes (markdown). None from release_list, which doesn’t request
the field (only release_view does) — so an absent value reads as the
honest “not fetched”, not a false empty string. A present JSON null (a
release genuinely without notes) likewise reads as None.
url: Option<String>Web URL. None from release_list, which doesn’t request the field (only
release_view does) — so an absent value reads as the honest “not fetched”,
not a false empty string. A present JSON null likewise reads as None.
published_at: StringPublication timestamp (ISO 8601); empty/null 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.