pub struct SecretRequest {
pub key: String,
pub field: Option<String>,
pub version: Option<String>,
pub context: Context,
}
Expand description
The request to retrieve a secret. This includes the name of the secret and the context needed to validate the requestor. The context will be passed to the underlying secrets service in order to make decisions around access. The version field is optional but highly recommended. If it is not provided, the service will default to retrieving the latest version of the secret.
Fields§
§key: String
An identifier of the secret as stored in the secret store.
This can be a key, path, or any other identifier that the secret store uses to retrieve a secret.
field: Option<String>
§version: Option<String>
§context: Context
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretRequest
impl<'de> Deserialize<'de> for SecretRequest
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 SecretRequest
impl RefUnwindSafe for SecretRequest
impl Send for SecretRequest
impl Sync for SecretRequest
impl Unpin for SecretRequest
impl UnwindSafe for SecretRequest
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