pub struct SkillTrustStore {
pub entries: BTreeMap<String, TrustEntry>,
pub revoked: Vec<String>,
}Fields§
§entries: BTreeMap<String, TrustEntry>§revoked: Vec<String>Kill-switch — content hashes that may NEVER load, regardless of the per-entry trust level.
Implementations§
Source§impl SkillTrustStore
impl SkillTrustStore
pub fn path(mur_home: &Path) -> PathBuf
pub fn load(mur_home: &Path) -> Result<Self, TrustStoreError>
pub fn save(&self, mur_home: &Path) -> Result<(), TrustStoreError>
pub fn insert(&mut self, hash: String, entry: TrustEntry)
pub fn lookup(&self, hash: &str) -> Option<&TrustEntry>
pub fn is_revoked(&self, hash: &str) -> bool
pub fn revoke(&mut self, hash: &str)
Trait Implementations§
Source§impl Debug for SkillTrustStore
impl Debug for SkillTrustStore
Source§impl Default for SkillTrustStore
impl Default for SkillTrustStore
Source§fn default() -> SkillTrustStore
fn default() -> SkillTrustStore
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SkillTrustStore
impl<'de> Deserialize<'de> for SkillTrustStore
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 SkillTrustStore
impl RefUnwindSafe for SkillTrustStore
impl Send for SkillTrustStore
impl Sync for SkillTrustStore
impl Unpin for SkillTrustStore
impl UnsafeUnpin for SkillTrustStore
impl UnwindSafe for SkillTrustStore
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