pub struct SecretResponse {
pub id: Uuid,
pub key: String,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Response DTO for a secret (never exposes the value).
Fields§
§id: UuidSecret ID.
key: StringSecret key.
created_at: DateTime<Utc>Creation timestamp.
updated_at: DateTime<Utc>Last update timestamp.
Trait Implementations§
Source§impl Debug for SecretResponse
impl Debug for SecretResponse
Source§impl From<Secret> for SecretResponse
impl From<Secret> for SecretResponse
Source§impl From<SecretMetadata> for SecretResponse
impl From<SecretMetadata> for SecretResponse
Source§fn from(meta: SecretMetadata) -> Self
fn from(meta: SecretMetadata) -> 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 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