pub struct Located {
pub base: PathBuf,
pub under_each_scene: bool,
pub secret: Secret,
}Expand description
One Credential placed on disk, for a sandbox backend.
Fields§
§base: PathBufThe directory the secret is in, resolved through its symlinks.
under_each_scene: boolThe secret is in each base/scenes/<scene>/, not in base itself.
secret: SecretImplementations§
Source§impl Located
impl Located
Sourcepub fn dirs(&self) -> Vec<PathBuf>
pub fn dirs(&self) -> Vec<PathBuf>
The directories the secret is directly in, as they exist now, spelled
under base.
Sourcepub fn linked_dirs_resolved(&self) -> Vec<PathBuf>
pub fn linked_dirs_resolved(&self) -> Vec<PathBuf>
The scene directories among Self::dirs that are symbolic links,
as they resolve: a backend that matches resolved paths against
base/scenes/<any>/ does not see the secret in them.
Trait Implementations§
impl Eq for Located
impl StructuralPartialEq for Located
Auto Trait Implementations§
impl Forget for Located
impl Freeze for Located
impl Move for Located
impl RefUnwindSafe for Located
impl Send for Located
impl Sync for Located
impl Unpin for Located
impl UnsafeUnpin for Located
impl UnwindSafe for Located
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