pub struct SecretResponse {
pub created_at: DateTime<Utc>,
pub id: Uuid,
pub key: String,
pub updated_at: DateTime<Utc>,
}Expand description
Response DTO for a secret (never exposes the value).
JSON schema
{
"description": "Response DTO for a secret (never exposes the value).",
"type": "object",
"required": [
"created_at",
"id",
"key",
"updated_at"
],
"properties": {
"created_at": {
"description": "Creation timestamp.",
"type": "string",
"format": "date-time"
},
"id": {
"description": "Secret ID.",
"type": "string",
"format": "uuid"
},
"key": {
"description": "Secret key.",
"type": "string"
},
"updated_at": {
"description": "Last update timestamp.",
"type": "string",
"format": "date-time"
}
}
}
```ignore
</details>Fields§
§created_at: DateTime<Utc>Creation timestamp.
id: UuidSecret ID.
key: StringSecret key.
updated_at: DateTime<Utc>Last update timestamp.
Implementations§
Source§impl SecretResponse
impl SecretResponse
pub fn builder() -> SecretResponse
Trait Implementations§
Source§impl Clone for SecretResponse
impl Clone for SecretResponse
Source§impl Debug for SecretResponse
impl Debug for SecretResponse
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<SecretResponse> for SecretResponse
impl From<SecretResponse> for SecretResponse
Source§fn from(value: SecretResponse) -> Self
fn from(value: SecretResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for SecretResponse
impl Serialize for SecretResponse
Source§impl TryFrom<SecretResponse> for SecretResponse
impl TryFrom<SecretResponse> for SecretResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SecretResponse) -> Result<Self, ConversionError>
fn try_from(value: SecretResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SecretResponse
impl RefUnwindSafe for SecretResponse
impl Send for SecretResponse
impl Sync for SecretResponse
impl Unpin for SecretResponse
impl UnsafeUnpin 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