pub struct ReleaseNotCovered { /* private fields */ }Expand description
A license that is valid, but doesn’t cover the version of the app that runs: it
covers only the releases published while its updates lasted, or versions up to
some major. Carried by Error::ReleaseNotCovered.
Not a reason to delete the stored license: it still covers the versions it did,
so the customer can go back to one of them, or upgrade and keep going. Say what
it covers (release_access) and offer the upgrade
(upgrade_url).
Implementations§
Source§impl ReleaseNotCovered
impl ReleaseNotCovered
Sourcepub fn license(&self) -> Option<&License>
pub fn license(&self) -> Option<&License>
The license, still good for the versions it covers. When Moonbase refused it
on validation, the copy it issued along with the refusal: store it in place
of the old one, as Licensing::validate_token_online
does. None when a download was refused.
Sourcepub fn app_version(&self) -> &str
pub fn app_version(&self) -> &str
The version that isn’t covered, as MAJOR.MINOR.PATCH: the app’s, as
Moonbase read it. Empty when a download was refused, which names none.
Sourcepub fn release_access(&self) -> Option<&ReleaseAccess>
pub fn release_access(&self) -> Option<&ReleaseAccess>
What the license covers: as Moonbase described it when it refused, else what the license says.
Sourcepub fn upgrade_url(&self) -> Option<&str>
pub fn upgrade_url(&self) -> Option<&str>
Where the customer buys the upgrade or renewal. Only Moonbase knows it, so
it is None when the device refused, and when the store sells none.