update_notice
Update-available notice molecule displayed beneath the startup banner.
struct Component
pub struct ComponentRenders the “a newer version is available” notice shown beneath the banner
when a GitHub release check turns up a newer version of gest.
| Field | Type | Description |
|---|---|---|
new_version |
String | Version of the newer release, shown as given. |
Implements Display.
Component::new
pub fn new(new_version: String) -> SelfCreate an update notice for the given new version string.
| Parameter | Type | Description |
|---|---|---|
new_version |
String | the newer release’s version, as the release check reports it |
| returns | Self | The notice: a line naming the version, then a line suggesting gest self-update. |