pub struct CreateSecretRequest {
pub name: String,
pub value: String,
pub scope: Option<String>,
pub node_affinity: Option<NodeAffinity>,
}Expand description
Request to create or update a secret.
scope is optional and only honored on the legacy code path — when set
alongside ?environment=, the request is rejected.
Fields§
§name: StringThe name of the secret.
value: StringThe secret value (will be encrypted at rest).
scope: Option<String>Optional explicit scope (legacy form). Mutually exclusive with the
?environment= query parameter.
node_affinity: Option<NodeAffinity>Optional per-secret node affinity. None (default) = any node may
host the decryptable form. When set, only matching nodes receive a
wrap of the DEK material for this row, and the API gate filters
reads accordingly. Ignored on standalone (non-clustered) daemons.
Trait Implementations§
Source§impl ComposeSchema for CreateSecretRequest
impl ComposeSchema for CreateSecretRequest
Source§impl Debug for CreateSecretRequest
impl Debug for CreateSecretRequest
Source§impl<'de> Deserialize<'de> for CreateSecretRequest
impl<'de> Deserialize<'de> for CreateSecretRequest
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
Auto Trait Implementations§
impl Freeze for CreateSecretRequest
impl RefUnwindSafe for CreateSecretRequest
impl Send for CreateSecretRequest
impl Sync for CreateSecretRequest
impl Unpin for CreateSecretRequest
impl UnsafeUnpin for CreateSecretRequest
impl UnwindSafe for CreateSecretRequest
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