Struct ReleasePrereleasedRelease

Source
pub struct ReleasePrereleasedRelease {
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

ReleasePrereleasedRelease

JSON schema
{
 "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": {
     "type": "boolean",
     "enum": [
       true
     ]
   },
   "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
}

Fields§

§assets: Vec<ReleaseAsset>§assets_url: String§author: User§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§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 Clone for ReleasePrereleasedRelease

Source§

fn clone(&self) -> ReleasePrereleasedRelease

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ReleasePrereleasedRelease

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ReleasePrereleasedRelease

Source§

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<&ReleasePrereleasedRelease> for ReleasePrereleasedRelease

Source§

fn from(value: &ReleasePrereleasedRelease) -> Self

Converts to this type from the input type.
Source§

impl From<ReleasePrereleasedRelease> for ReleasePrereleasedRelease

Source§

fn from(value: ReleasePrereleasedRelease) -> Self

Converts to this type from the input type.
Source§

impl Serialize for ReleasePrereleasedRelease

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<ReleasePrereleasedRelease> for ReleasePrereleasedRelease

Source§

type Error = String

The type returned in the event of a conversion error.
Source§

fn try_from(value: ReleasePrereleasedRelease) -> Result<Self, String>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,