pub struct Release {Show 13 fields
pub index: usize,
pub tag_name: String,
pub target_commitish: Option<String>,
pub name: String,
pub body: String,
pub draft: bool,
pub prerelease: bool,
pub publisher_id: usize,
pub publisher_name: String,
pub publisher_email: Option<String>,
pub assets: Option<Vec<ReleaseAsset>>,
pub created: String,
pub published: String,
}
Expand description
Assets that constitute a release for a given tag.
Fields
index: usize
Unique identifier
tag_name: String
Git tag name of the release.
target_commitish: Option<String>
Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists.
name: String
The name of the release
body: String
Text describing the contents of the release.
draft: bool
True if the release is a draft.
prerelease: bool
True if the release is a pre-release.
publisher_id: usize
Unique identifier of the user who authored the release.
publisher_name: String
Name of the user who authored the release.
publisher_email: Option<String>
Email of the user who authored the release.
assets: Option<Vec<ReleaseAsset>>
List of assets associated with the release.
created: String
Creation time
published: String
Publication time.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Release
impl<'de> Deserialize<'de> for Release
sourcefn 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 Eq for Release
impl StructuralEq for Release
impl StructuralPartialEq for Release
Auto Trait Implementations
impl RefUnwindSafe for Release
impl Send for Release
impl Sync for Release
impl Unpin for Release
impl UnwindSafe for Release
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more