pub struct SecretDef {
pub key: String,
pub description: String,
pub required: bool,
}Expand description
A secret required by a recipe, declared in the definition’s secrets array.
The key matches the {{env.KEY}} placeholder used in node params.
At execution time, the key is resolved via ProcessContext::env_var().
Fields§
§key: StringEnvironment variable name (e.g., "OPENAI_API_KEY").
description: StringHuman-readable description shown in error messages and bnto doctor.
required: boolWhether the pipeline should refuse to start without this secret. Optional secrets resolve to empty string if absent.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SecretDef
impl<'de> Deserialize<'de> for SecretDef
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 SecretDef
impl StructuralPartialEq for SecretDef
Auto Trait Implementations§
impl Freeze for SecretDef
impl RefUnwindSafe for SecretDef
impl Send for SecretDef
impl Sync for SecretDef
impl Unpin for SecretDef
impl UnsafeUnpin for SecretDef
impl UnwindSafe for SecretDef
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