pub struct StoreDirectoryRef {
pub path: PathBuf,
pub content: HashSet<StoreEntry>,
}Expand description
A reference to a directory in the password store
Fields§
§path: PathBufAbsolute path to the referenced directory
content: HashSet<StoreEntry>Other entries that are contained in this directory
Implementations§
Source§impl StoreDirectoryRef
impl StoreDirectoryRef
Sourcepub fn name(&self) -> Result<String>
pub fn name(&self) -> Result<String>
Retrieve the name of the store entry
The name is represented as a relative path from the store root and can be used to retrieve this
entry using retrieve.
Sourcepub fn iter(&self) -> StoreDirectoryIter<'_> ⓘ
pub fn iter(&self) -> StoreDirectoryIter<'_> ⓘ
iterate over all the entries contained in the storage hierarchy below this directory
Note: The iterator iterates over all entries even if they are in a subdirectory further down the
storage hierarchy thus flattening it. If you want to iterate only over the entries contained directly
in this directory, use the content field instead.
Trait Implementations§
Source§impl Clone for StoreDirectoryRef
impl Clone for StoreDirectoryRef
Source§fn clone(&self) -> StoreDirectoryRef
fn clone(&self) -> StoreDirectoryRef
Returns a copy of the value. Read more
1.0.0 · 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 StoreDirectoryRef
impl Debug for StoreDirectoryRef
Source§impl Hash for StoreDirectoryRef
impl Hash for StoreDirectoryRef
Source§impl<'a> IntoIterator for &'a StoreDirectoryRef
impl<'a> IntoIterator for &'a StoreDirectoryRef
Source§impl PartialEq for StoreDirectoryRef
impl PartialEq for StoreDirectoryRef
impl Eq for StoreDirectoryRef
Auto Trait Implementations§
impl Freeze for StoreDirectoryRef
impl RefUnwindSafe for StoreDirectoryRef
impl Send for StoreDirectoryRef
impl Sync for StoreDirectoryRef
impl Unpin for StoreDirectoryRef
impl UnwindSafe for StoreDirectoryRef
Blanket Implementations§
Source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
Source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
Source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
Source§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
Source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
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<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
Source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
Source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
Source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
Approximate the subject to a given type with a specific scheme.