Struct prs_lib::store::Store [−][src]
pub struct Store {
pub root: PathBuf,
}Expand description
Represents a password store.
Fields
root: PathBufRoot directory of the password store.
This path is always absolute.
Implementations
Get the recipient keys for this store.
Get a tomb helper for this store.
pub fn secret_iter(&self) -> SecretIterⓘNotable traits for SecretIter
impl Iterator for SecretIter type Item = Secret;
pub fn secret_iter(&self) -> SecretIterⓘNotable traits for SecretIter
impl Iterator for SecretIter type Item = Secret;Create secret iterator for this store.
pub fn secret_iter_config(&self, config: SecretIterConfig) -> SecretIterⓘNotable traits for SecretIter
impl Iterator for SecretIter type Item = Secret;
pub fn secret_iter_config(&self, config: SecretIterConfig) -> SecretIterⓘNotable traits for SecretIter
impl Iterator for SecretIter type Item = Secret;Create secret iterator for this store with custom configuration.
Try to find matching secrets for given query.
If secret is found at exact query path, FindSecret::Found is returned.
Otherwise any number of closely matching secrets is returned as FindSecret::Many.
Normalizes a path for a secret in this store.
- Ensures path is within store.
- If directory is given, name hint is appended.
- Sets correct extension.
- Creates parent directories if non existant (optional).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Storeimpl UnwindSafe for StoreBlanket Implementations
type Err = NoError
type Err = NoErrorThe error type produced by a failed conversion.
pub fn approx_from(
src: Src
) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
pub fn approx_from(
src: Src
) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>Convert the given value into an approximately equivalent representation.
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::ErrThe error type produced by a failed conversion.
pub fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
pub fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>Convert the subject into an approximately equivalent representation.
Mutably borrows from an owned value. Read more
Approximate the subject to a given type with the default scheme.
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme, Approximate the subject to a given type with a specific scheme.
Attempt to convert the subject to a given type.
type Err = NoError
type Err = NoErrorThe error type produced by a failed conversion.
pub fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
pub fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>Convert the given value into an exactly equivalent representation.
type Err = <Dst as ValueFrom<Src>>::Err
type Err = <Dst as ValueFrom<Src>>::ErrThe error type produced by a failed conversion.
pub fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
pub fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>Convert the subject into an exactly equivalent representation.