pub struct Release {Show 21 fields
pub assets: Vec<ReleaseAsset>,
pub assets_url: String,
pub author: User,
pub body: String,
pub created_at: Option<DateTime<Utc>>,
pub discussion_url: Option<String>,
pub draft: bool,
pub html_url: String,
pub id: i64,
pub mentions_count: Option<i64>,
pub name: String,
pub node_id: String,
pub prerelease: bool,
pub published_at: Option<DateTime<Utc>>,
pub reactions: Option<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
The release object.
JSON schema
{
"title": "Release",
"description": "The [release](https://docs.github.com/en/rest/reference/repos/#get-a-release) object.",
"type": "object",
"required": [
"assets",
"assets_url",
"author",
"body",
"created_at",
"draft",
"html_url",
"id",
"name",
"node_id",
"prerelease",
"published_at",
"tag_name",
"tarball_url",
"target_commitish",
"upload_url",
"url",
"zipball_url"
],
"properties": {
"assets": {
"type": "array",
"items": {
"$ref": "#/definitions/release-asset"
}
},
"assets_url": {
"type": "string",
"format": "uri"
},
"author": {
"$ref": "#/definitions/user"
},
"body": {
"type": "string"
},
"created_at": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"discussion_url": {
"type": "string",
"format": "uri"
},
"draft": {
"description": "Wether the release is a draft or published",
"type": "boolean"
},
"html_url": {
"type": "string",
"format": "uri"
},
"id": {
"type": "integer"
},
"mentions_count": {
"type": "integer"
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"prerelease": {
"description": "Whether the release is identified as a prerelease or a full release.",
"type": "boolean"
},
"published_at": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"reactions": {
"$ref": "#/definitions/reactions"
},
"tag_name": {
"description": "The name of the tag.",
"type": "string"
},
"tarball_url": {
"type": [
"string",
"null"
],
"format": "uri"
},
"target_commitish": {
"description": "Specifies the commitish value that determines where the Git tag is created from.",
"type": "string"
},
"upload_url": {
"type": "string",
"format": "uri-template"
},
"url": {
"type": "string",
"format": "uri"
},
"zipball_url": {
"type": [
"string",
"null"
],
"format": "uri"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§assets: Vec<ReleaseAsset>
§assets_url: String
§body: String
§created_at: Option<DateTime<Utc>>
§discussion_url: Option<String>
§draft: bool
Wether the release is a draft or published
html_url: String
§id: i64
§mentions_count: Option<i64>
§name: String
§node_id: String
§prerelease: bool
Whether the release is identified as a prerelease or a full release.
published_at: Option<DateTime<Utc>>
§reactions: Option<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§
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
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