#[non_exhaustive]pub struct Release {
pub tag_name: String,
pub name: String,
pub url: String,
pub published_at: String,
}Expand description
A release (glab release list/view --output json) — GitLab’s REST
Release object, which glab passes through unchanged.
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 Git tag the release is attached to (the <tag>
release_view takes).
name: StringRelease title (may be empty/absent — GitLab defaults it to the tag).
url: StringWeb URL of the release page. GitLab carries it as _links.self (there
is no top-level web_url on a release), so it is pulled off that nested
object; empty when absent.
published_at: StringPublication timestamp (GitLab’s released_at, ISO 8601); empty when
absent (e.g. an upcoming/unpublished release).
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