pub struct SecretResponse {
pub secret: Option<Secret>,
pub error: Option<GetSecretError>,
}
Expand description
The response to a secret request. The fields are mutually exclusive: either a secret or an error will be set.
Fields§
§secret: Option<Secret>
§error: Option<GetSecretError>
Trait Implementations§
source§impl Default for SecretResponse
impl Default for SecretResponse
source§fn default() -> SecretResponse
fn default() -> SecretResponse
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SecretResponse
impl<'de> Deserialize<'de> for SecretResponse
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
source§impl From<GetSecretError> for SecretResponse
impl From<GetSecretError> for SecretResponse
source§fn from(e: GetSecretError) -> Self
fn from(e: GetSecretError) -> Self
Converts to this type from the input type.
source§impl From<SecretResponse> for Bytes
impl From<SecretResponse> for Bytes
source§fn from(resp: SecretResponse) -> Self
fn from(resp: SecretResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SecretResponse
impl RefUnwindSafe for SecretResponse
impl Send for SecretResponse
impl Sync for SecretResponse
impl Unpin for SecretResponse
impl UnwindSafe for SecretResponse
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