[−][src]Struct sn0int::keyring::KeyRing
Methods
impl KeyRing
[src]
impl KeyRing
pub fn path() -> Result<PathBuf> | [src] |
pub fn init() -> Result<KeyRing> | [src] |
pub fn load(path: &PathBuf) -> Result<KeyRing> | [src] |
pub fn save(&self) -> Result<()> | [src] |
pub fn insert(&mut self, key: KeyName, secret: Option<String>) -> Result<()> | [src] |
pub fn delete(&mut self, key: KeyName) -> Result<()> | [src] |
pub fn list(&self) -> Vec<KeyName> | [src] |
pub fn list_for(&self, namespace: &str) -> Vec<KeyName> | [src] |
pub fn get(&self, key: &KeyName) -> Option<KeyRingEntry> | [src] |
pub fn get_all_for(&self, namespace: &str) -> Vec<KeyRingEntry> | [src] |
pub fn unauthorized_namespaces<'a>(&self, module: &'a Module) -> Vec<&'a String> | [src] |
pub fn grant_access(&mut self, module: &Module, namespace: String) | [src] |
pub fn is_access_granted(&self, module: &Module, namespace: &str) -> bool | [src] |
pub fn request_keys(&self, module: &Module) -> Vec<KeyRingEntry> | [src] |
Trait Implementations
impl Debug for KeyRing
[src]
impl Debug for KeyRing
impl Serialize for KeyRing
[src]
impl Serialize for KeyRing
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where | [src] |
impl<'de> Deserialize<'de> for KeyRing
[src]
impl<'de> Deserialize<'de> for KeyRing
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where | [src] |
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> IntoSql for T
[src]
impl<T> IntoSql for T
fn into_sql<T>(self) -> Self::Expression where | [src] |
Convert self
to an expression for Diesel's query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where | [src] |
Convert &self
to an expression for Diesel's query builder. Read more
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
impl<T> Erased for T
impl<T> Erased for T