#[non_exhaustive]pub struct Release {
pub tag: String,
pub title: String,
pub published_at: String,
pub draft: bool,
pub prerelease: bool,
pub url: String,
}Expand description
A release (tea releases list --output json), flattened from tea’s fixed
release-table columns. tea releases exposes no web-page URL (only a
combined tar/zip download URL, which we deliberately don’t surface), so
url is always empty for Gitea — see the field doc.
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: StringGit tag the release points at (tea’s Tag-Name column).
title: StringRelease title (tea’s Title column).
published_at: StringPublish timestamp, e.g. "2023-07-26T13:02:36Z" (tea’s Published At
column); empty for an unpublished draft.
draft: boolWhether the release is a draft (derived from tea’s Status column).
prerelease: boolWhether the release is a pre-release (derived from tea’s Status column).
url: StringAlways empty for Gitea. tea releases list has no release-page URL
column (only a tar/zip download URL, intentionally not surfaced here).
Trait Implementations§
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