pub struct SkillHistory {
pub current: HistoricalVersion,
pub history: Vec<HistoricalVersion>,
}Expand description
Per-skill history record.
Fields§
§current: HistoricalVersionThe version shipped in this binary.
history: Vec<HistoricalVersion>Previous shipped versions (chronological). Empty for brand-new skills.
Implementations§
Source§impl SkillHistory
impl SkillHistory
Sourcepub fn is_current(&self, sha256: &str) -> bool
pub fn is_current(&self, sha256: &str) -> bool
Return true if the given hash matches the current shipped version.
Sourcepub fn is_historical(&self, sha256: &str) -> bool
pub fn is_historical(&self, sha256: &str) -> bool
Return true if the hash matches any previously-shipped version.
Trait Implementations§
Source§impl Clone for SkillHistory
impl Clone for SkillHistory
Source§fn clone(&self) -> SkillHistory
fn clone(&self) -> SkillHistory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SkillHistory
impl Debug for SkillHistory
Source§impl<'de> Deserialize<'de> for SkillHistory
impl<'de> Deserialize<'de> for SkillHistory
Source§fn 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
Auto Trait Implementations§
impl Freeze for SkillHistory
impl RefUnwindSafe for SkillHistory
impl Send for SkillHistory
impl Sync for SkillHistory
impl Unpin for SkillHistory
impl UnsafeUnpin for SkillHistory
impl UnwindSafe for SkillHistory
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