#[non_exhaustive]pub struct ForgeRelease {
pub tag: String,
pub title: String,
pub url: String,
pub published_at: Option<String>,
}Expand description
A release, unified across the three forges. (Gitea’s tea always lists —
it has no single-release view — so
release_view is
Unsupported there.)
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: StringThe Git tag the release is attached to (what
release_view takes).
title: StringRelease title (may be empty — forges commonly default it to the tag).
url: StringWeb URL. Best-effort: empty from GitHub’s lean release_list;
release_view fills it where supported.
published_at: Option<String>Publication timestamp (ISO 8601); None for an unpublished draft or
when the backend doesn’t report one.
Trait Implementations§
Source§impl Clone for ForgeRelease
impl Clone for ForgeRelease
Source§fn clone(&self) -> ForgeRelease
fn clone(&self) -> ForgeRelease
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 ForgeRelease
impl Debug for ForgeRelease
impl Eq for ForgeRelease
Source§impl PartialEq for ForgeRelease
impl PartialEq for ForgeRelease
Source§fn eq(&self, other: &ForgeRelease) -> bool
fn eq(&self, other: &ForgeRelease) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ForgeRelease
impl Serialize for ForgeRelease
impl StructuralPartialEq for ForgeRelease
Auto Trait Implementations§
impl Freeze for ForgeRelease
impl RefUnwindSafe for ForgeRelease
impl Send for ForgeRelease
impl Sync for ForgeRelease
impl Unpin for ForgeRelease
impl UnsafeUnpin for ForgeRelease
impl UnwindSafe for ForgeRelease
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