pub struct PluginTrustStore { /* private fields */ }Implementations§
Source§impl PluginTrustStore
impl PluginTrustStore
pub fn empty() -> Self
pub fn from_json(bytes: &[u8]) -> Result<Self, PluginPackageError>
pub fn from_file(path: &Path) -> Result<Self, PluginPackageError>
pub fn to_json(&self) -> Result<Vec<u8>, PluginPackageError>
pub fn insert(&mut self, key: PluginPublicKey) -> Result<(), PluginPackageError>
pub fn revoke( &mut self, publisher: &str, requested_key_id: &str, ) -> Result<(), PluginPackageError>
Trait Implementations§
Source§impl Clone for PluginTrustStore
impl Clone for PluginTrustStore
Source§fn clone(&self) -> PluginTrustStore
fn clone(&self) -> PluginTrustStore
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 PluginTrustStore
impl Debug for PluginTrustStore
impl Eq for PluginTrustStore
Source§impl PartialEq for PluginTrustStore
impl PartialEq for PluginTrustStore
impl StructuralPartialEq for PluginTrustStore
Auto Trait Implementations§
impl Freeze for PluginTrustStore
impl RefUnwindSafe for PluginTrustStore
impl Send for PluginTrustStore
impl Sync for PluginTrustStore
impl Unpin for PluginTrustStore
impl UnsafeUnpin for PluginTrustStore
impl UnwindSafe for PluginTrustStore
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.