pub trait ReleaseExt:
IsA<Release>
+ Sealed
+ 'static {
Show 29 methods
// Provided methods
fn add_artifact(&self, artifact: &impl IsA<Artifact>) { ... }
fn add_issue(&self, issue: &impl IsA<Issue>) { ... }
fn add_tag(&self, ns: &str, tag: &str) -> bool { ... }
fn clear_tags(&self) { ... }
fn artifacts(&self) -> Vec<Artifact> { ... }
fn context(&self) -> Option<Context> { ... }
fn date(&self) -> Option<GString> { ... }
fn date_eol(&self) -> Option<GString> { ... }
fn description(&self) -> Option<GString> { ... }
fn issues(&self) -> Vec<Issue> { ... }
fn kind(&self) -> ReleaseKind { ... }
fn timestamp(&self) -> u64 { ... }
fn timestamp_eol(&self) -> u64 { ... }
fn urgency(&self) -> UrgencyKind { ... }
fn url(&self, url_kind: ReleaseUrlKind) -> Option<GString> { ... }
fn version(&self) -> Option<GString> { ... }
fn has_tag(&self, ns: &str, tag: &str) -> bool { ... }
fn remove_tag(&self, ns: &str, tag: &str) -> bool { ... }
fn set_context(&self, context: &impl IsA<Context>) { ... }
fn set_date(&self, date: &str) { ... }
fn set_date_eol(&self, date: &str) { ... }
fn set_description(&self, description: &str, locale: Option<&str>) { ... }
fn set_kind(&self, kind: ReleaseKind) { ... }
fn set_timestamp(&self, timestamp: u64) { ... }
fn set_timestamp_eol(&self, timestamp: u64) { ... }
fn set_urgency(&self, urgency: UrgencyKind) { ... }
fn set_url(&self, url_kind: ReleaseUrlKind, url: &str) { ... }
fn set_version(&self, version: &str) { ... }
fn vercmp(&self, rel2: &impl IsA<Release>) -> i32 { ... }
}
Provided Methods§
sourcefn add_artifact(&self, artifact: &impl IsA<Artifact>)
fn add_artifact(&self, artifact: &impl IsA<Artifact>)
Remove all tags associated with this release.
sourcefn description(&self) -> Option<GString>
fn description(&self) -> Option<GString>
sourcefn kind(&self) -> ReleaseKind
fn kind(&self) -> ReleaseKind
Gets the type of the release. (development or stable release)
sourcefn timestamp_eol(&self) -> u64
fn timestamp_eol(&self) -> u64
Gets the UNIX timestamp for the date when this release is out of support (end-of-life).
§Returns
UNIX timestamp, or 0 for unset or invalid.
sourcefn urgency(&self) -> UrgencyKind
fn urgency(&self) -> UrgencyKind
Gets the urgency of the release (showing how important it is to update to a more recent release)
§Returns
UrgencyKind
, or UrgencyKind::Unknown
for not set
sourcefn url(&self, url_kind: ReleaseUrlKind) -> Option<GString>
fn url(&self, url_kind: ReleaseUrlKind) -> Option<GString>
Gets an URL.
§url_kind
the URL kind, e.g. ReleaseUrlKind::Details
.
§Returns
string, or None
if unset
sourcefn remove_tag(&self, ns: &str, tag: &str) -> bool
fn remove_tag(&self, ns: &str, tag: &str) -> bool
sourcefn set_context(&self, context: &impl IsA<Context>)
fn set_context(&self, context: &impl IsA<Context>)
sourcefn set_date_eol(&self, date: &str)
fn set_date_eol(&self, date: &str)
sourcefn set_description(&self, description: &str, locale: Option<&str>)
fn set_description(&self, description: &str, locale: Option<&str>)
sourcefn set_kind(&self, kind: ReleaseKind)
fn set_kind(&self, kind: ReleaseKind)
Sets the release kind to distinguish between end-user ready stable releases and development prereleases..
§kind
the ReleaseKind
sourcefn set_timestamp(&self, timestamp: u64)
fn set_timestamp(&self, timestamp: u64)
sourcefn set_timestamp_eol(&self, timestamp: u64)
fn set_timestamp_eol(&self, timestamp: u64)
Sets the UNIX timestamp for the date when this release is out of support (end-of-life).
§timestamp
the timestamp value.
sourcefn set_urgency(&self, urgency: UrgencyKind)
fn set_urgency(&self, urgency: UrgencyKind)
sourcefn set_url(&self, url_kind: ReleaseUrlKind, url: &str)
fn set_url(&self, url_kind: ReleaseUrlKind, url: &str)
Sets an URL for this release.
§url_kind
the URL kind, e.g. ReleaseUrlKind::Details
§url
the full URL.