pub struct Secrets(/* private fields */);Expand description
The values of a run’s secret and input slots, by slot name.
Implementations§
Source§impl Secrets
impl Secrets
Sourcepub fn insert(&mut self, name: impl Into<String>, value: SecretValue)
pub fn insert(&mut self, name: impl Into<String>, value: SecretValue)
Sets slot name’s value.
Sourcepub fn get(&self, name: &str) -> Option<&SecretValue>
pub fn get(&self, name: &str) -> Option<&SecretValue>
Slot name’s value, when given.
Sourcepub fn iter(&self) -> impl Iterator<Item = (&str, &SecretValue)>
pub fn iter(&self) -> impl Iterator<Item = (&str, &SecretValue)>
Every slot given a value, by name.
Trait Implementations§
impl Eq for Secrets
Source§impl<K: Into<String>, V: Into<SecretValue>> FromIterator<(K, V)> for Secrets
impl<K: Into<String>, V: Into<SecretValue>> FromIterator<(K, V)> for Secrets
impl StructuralPartialEq for Secrets
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.