pub struct Secrets { /* private fields */ }Expand description
An engine-scoped store of values readable through {"secret": "name"}.
Always an object; nested objects let a host namespace
({"secret": "partner.hmac"}). It is neither Serialize nor Clone, and
its Debug prints key names with every value masked.
Implementations§
Source§impl Secrets
impl Secrets
Sourcepub fn new(root: OwnedDataValue) -> Result<Self>
pub fn new(root: OwnedDataValue) -> Result<Self>
Wraps a host-supplied value. It must be an object, else
ErrorKind::Config.
Sourcepub fn get(&self, path: &str) -> Option<&OwnedDataValue>
pub fn get(&self, path: &str) -> Option<&OwnedDataValue>
Looks up a dotted path, by a context path’s segment rules. The empty
path is None, never the whole store. A lookup allocates nothing.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Secrets
impl RefUnwindSafe for Secrets
impl Send for Secrets
impl Sync for Secrets
impl Unpin for Secrets
impl UnsafeUnpin for Secrets
impl UnwindSafe for Secrets
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