pub struct Release {Show 20 fields
pub assets: Vec<ReleaseAsset1>,
pub assets_url: String,
pub author: Option<Box<User>>,
pub body: Option<String>,
pub created_at: Option<String>,
pub discussion_url: Option<String>,
pub draft: bool,
pub html_url: String,
pub id: i32,
pub name: Option<String>,
pub node_id: String,
pub prerelease: bool,
pub published_at: Option<String>,
pub reactions: Option<Box<Reactions>>,
pub tag_name: String,
pub tarball_url: Option<String>,
pub target_commitish: String,
pub upload_url: String,
pub url: String,
pub zipball_url: Option<String>,
}
Expand description
Release : The release object.
Fields§
§assets: Vec<ReleaseAsset1>
§assets_url: String
§body: Option<String>
§created_at: Option<String>
§discussion_url: Option<String>
§draft: bool
Whether the release is a draft or published
html_url: String
§id: i32
§name: Option<String>
§node_id: String
§prerelease: bool
Whether the release is identified as a prerelease or a full release.
published_at: Option<String>
§reactions: Option<Box<Reactions>>
§tag_name: String
The name of the tag.
tarball_url: Option<String>
§target_commitish: String
Specifies the commitish value that determines where the Git tag is created from.
upload_url: String
§url: String
§zipball_url: Option<String>
Implementations§
Source§impl Release
impl Release
Sourcepub fn new(
assets: Vec<ReleaseAsset1>,
assets_url: String,
author: Option<User>,
body: Option<String>,
created_at: Option<String>,
draft: bool,
html_url: String,
id: i32,
name: Option<String>,
node_id: String,
prerelease: bool,
published_at: Option<String>,
tag_name: String,
tarball_url: Option<String>,
target_commitish: String,
upload_url: String,
url: String,
zipball_url: Option<String>,
) -> Release
pub fn new( assets: Vec<ReleaseAsset1>, assets_url: String, author: Option<User>, body: Option<String>, created_at: Option<String>, draft: bool, html_url: String, id: i32, name: Option<String>, node_id: String, prerelease: bool, published_at: Option<String>, tag_name: String, tarball_url: Option<String>, target_commitish: String, upload_url: String, url: String, zipball_url: Option<String>, ) -> Release
The release object.
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 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 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