pub struct RecipeMatch {
pub recipe: String,
pub key: String,
}Expand description
One entry in a SecretAccess::Recipes allow-list.
Both fields are required and both are compared exactly. key is here
because the recipe name is chosen by whoever writes the recipe: without
it, any holder of any key the node trusts could sign a recipe called
rusty-v8-musl and inherit its credentials.
Fields§
§recipe: StringThe admitted recipe name, as it appears in the signed grant.
key: StringHex Ed25519 public key that must have signed the grant.
Implementations§
Source§impl RecipeMatch
impl RecipeMatch
Sourcepub fn admits(&self, consumer: &SecretConsumer) -> bool
pub fn admits(&self, consumer: &SecretConsumer) -> bool
Whether consumer presents a verified identity this entry admits.
Trait Implementations§
Source§impl Clone for RecipeMatch
impl Clone for RecipeMatch
Source§fn clone(&self) -> RecipeMatch
fn clone(&self) -> RecipeMatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RecipeMatch
impl Debug for RecipeMatch
Source§impl<'de> Deserialize<'de> for RecipeMatch
impl<'de> Deserialize<'de> for RecipeMatch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RecipeMatch
Source§impl PartialEq for RecipeMatch
impl PartialEq for RecipeMatch
Source§impl Serialize for RecipeMatch
impl Serialize for RecipeMatch
impl StructuralPartialEq for RecipeMatch
Auto Trait Implementations§
impl Freeze for RecipeMatch
impl RefUnwindSafe for RecipeMatch
impl Send for RecipeMatch
impl Sync for RecipeMatch
impl Unpin for RecipeMatch
impl UnsafeUnpin for RecipeMatch
impl UnwindSafe for RecipeMatch
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.