pub struct UserResponse {
pub id: Uuid,
pub email: String,
pub username: String,
pub is_admin: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Response DTO for a user (never exposes password hash).
Fields§
§id: UuidUser ID.
email: StringEmail address.
username: StringDisplay username.
is_admin: boolWhether the user is an admin.
created_at: DateTime<Utc>Creation timestamp.
updated_at: DateTime<Utc>Last update timestamp.
Trait Implementations§
Source§impl Debug for UserResponse
impl Debug for UserResponse
Source§impl From<User> for UserResponse
impl From<User> for UserResponse
Auto Trait Implementations§
impl Freeze for UserResponse
impl RefUnwindSafe for UserResponse
impl Send for UserResponse
impl Sync for UserResponse
impl Unpin for UserResponse
impl UnsafeUnpin for UserResponse
impl UnwindSafe for UserResponse
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