pub struct WebhooksRelease {Show 20 fields
pub assets: Vec<ReleaseAsset>,
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
WebhooksRelease : The release object.
Fields§
§assets: Vec<ReleaseAsset>
§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 WebhooksRelease
impl WebhooksRelease
Sourcepub fn new(
assets: Vec<ReleaseAsset>,
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>,
) -> WebhooksRelease
pub fn new( assets: Vec<ReleaseAsset>, 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>, ) -> WebhooksRelease
The release object.
Trait Implementations§
Source§impl Clone for WebhooksRelease
impl Clone for WebhooksRelease
Source§fn clone(&self) -> WebhooksRelease
fn clone(&self) -> WebhooksRelease
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 WebhooksRelease
impl Debug for WebhooksRelease
Source§impl Default for WebhooksRelease
impl Default for WebhooksRelease
Source§fn default() -> WebhooksRelease
fn default() -> WebhooksRelease
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhooksRelease
impl<'de> Deserialize<'de> for WebhooksRelease
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 PartialEq for WebhooksRelease
impl PartialEq for WebhooksRelease
Source§impl Serialize for WebhooksRelease
impl Serialize for WebhooksRelease
impl StructuralPartialEq for WebhooksRelease
Auto Trait Implementations§
impl Freeze for WebhooksRelease
impl RefUnwindSafe for WebhooksRelease
impl Send for WebhooksRelease
impl Sync for WebhooksRelease
impl Unpin for WebhooksRelease
impl UnwindSafe for WebhooksRelease
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