Struct jortestkit::github::Release
source · pub struct Release {
version: String,
released_date: Option<SystemTime>,
releases_per_os: HashMap<Type, Asset>,
prerelease: bool,
draft: bool,
}
Fields§
§version: String
§released_date: Option<SystemTime>
§releases_per_os: HashMap<Type, Asset>
§prerelease: bool
§draft: bool
Implementations§
source§impl Release
impl Release
pub fn get_release_for_os(&self, os_type: OsType) -> Option<Asset>
pub fn assets(&self) -> Vec<Asset>
sourcefn compact_os_types(&self, os_type: OsType) -> OsType
fn compact_os_types(&self, os_type: OsType) -> OsType
narrow linux distribution to linux type
pub fn releases_per_os(&self) -> &HashMap<OsType, Asset>
pub fn released_date(&self) -> &Option<SystemTime>
pub fn version_str(&self) -> String
pub fn version(&self) -> Version
fn without_first(string: &str) -> &str
pub fn prerelease(&self) -> bool
pub fn draft(&self) -> bool
Trait Implementations§
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§
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