pub struct Skill {
pub owner: String,
pub name: String,
pub version: String,
pub files: Vec<SkillFile>,
pub integrity: Integrity,
}Expand description
A resolved skill ready to install. Identity is owner/name@version;
integrity covers the concatenated, sorted file contents (see
compute_integrity).
Fields§
§owner: String§name: String§version: String§files: Vec<SkillFile>§integrity: IntegrityImplementations§
Source§impl Skill
impl Skill
Sourcepub fn id(&self) -> String
pub fn id(&self) -> String
Canonical <owner>/<name> identifier used in lockfile keys and
install paths.
Sourcepub fn lockfile_key(&self) -> String
pub fn lockfile_key(&self) -> String
Lockfile entry key for this skill.
Sourcepub fn computed_integrity(&self) -> Integrity
pub fn computed_integrity(&self) -> Integrity
Recompute integrity from this skill’s files.
Sourcepub fn integrity_matches(&self) -> bool
pub fn integrity_matches(&self) -> bool
Convenience: self.computed_integrity() == self.integrity.
Trait Implementations§
impl Eq for Skill
impl StructuralPartialEq for Skill
Auto Trait Implementations§
impl Freeze for Skill
impl RefUnwindSafe for Skill
impl Send for Skill
impl Sync for Skill
impl Unpin for Skill
impl UnsafeUnpin for Skill
impl UnwindSafe for Skill
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.