pub struct ReleaseAsset {Show 13 fields
pub browser_download_url: String,
pub content_type: String,
pub created_at: DateTime<Utc>,
pub download_count: i64,
pub id: i64,
pub label: Option<String>,
pub name: String,
pub node_id: String,
pub size: i64,
pub state: ReleaseAssetState,
pub updated_at: DateTime<Utc>,
pub uploader: Option<User>,
pub url: String,
}
Expand description
Data related to a release.
JSON schema
{
"title": "Release Asset",
"description": "Data related to a release.",
"type": "object",
"required": [
"browser_download_url",
"content_type",
"created_at",
"download_count",
"id",
"label",
"name",
"node_id",
"size",
"state",
"updated_at",
"url"
],
"properties": {
"browser_download_url": {
"type": "string",
"format": "uri"
},
"content_type": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"download_count": {
"type": "integer"
},
"id": {
"type": "integer"
},
"label": {
"type": [
"string",
"null"
]
},
"name": {
"description": "The file name of the asset.",
"type": "string"
},
"node_id": {
"type": "string"
},
"size": {
"type": "integer"
},
"state": {
"description": "State of the release asset.",
"type": "string",
"enum": [
"uploaded"
]
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"uploader": {
"$ref": "#/definitions/user"
},
"url": {
"type": "string",
"format": "uri"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§browser_download_url: String
§content_type: String
§created_at: DateTime<Utc>
§download_count: i64
§id: i64
§label: Option<String>
§name: String
The file name of the asset.
node_id: String
§size: i64
§state: ReleaseAssetState
State of the release asset.
updated_at: DateTime<Utc>
§uploader: Option<User>
§url: String
Implementations§
Source§impl ReleaseAsset
impl ReleaseAsset
pub fn builder() -> ReleaseAsset
Trait Implementations§
Source§impl Clone for ReleaseAsset
impl Clone for ReleaseAsset
Source§fn clone(&self) -> ReleaseAsset
fn clone(&self) -> ReleaseAsset
Returns a duplicate of the value. Read more
1.0.0 · 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 ReleaseAsset
impl Debug for ReleaseAsset
Source§impl<'de> Deserialize<'de> for ReleaseAsset
impl<'de> Deserialize<'de> for ReleaseAsset
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
Source§impl From<&ReleaseAsset> for ReleaseAsset
impl From<&ReleaseAsset> for ReleaseAsset
Source§fn from(value: &ReleaseAsset) -> Self
fn from(value: &ReleaseAsset) -> Self
Converts to this type from the input type.
Source§impl From<ReleaseAsset> for ReleaseAsset
impl From<ReleaseAsset> for ReleaseAsset
Source§fn from(value: ReleaseAsset) -> Self
fn from(value: ReleaseAsset) -> Self
Converts to this type from the input type.
Source§impl Serialize for ReleaseAsset
impl Serialize for ReleaseAsset
Source§impl TryFrom<ReleaseAsset> for ReleaseAsset
impl TryFrom<ReleaseAsset> for ReleaseAsset
Auto Trait Implementations§
impl Freeze for ReleaseAsset
impl RefUnwindSafe for ReleaseAsset
impl Send for ReleaseAsset
impl Sync for ReleaseAsset
impl Unpin for ReleaseAsset
impl UnwindSafe for ReleaseAsset
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