mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-08 08:04:25 +00:00
* presigned * all * all * all * all * all * all * all * nit * nit * ee-ref * presigned * presigned
21 lines
479 B
Rust
21 lines
479 B
Rust
use crate::db::Authable;
|
|
|
|
#[derive(Clone)]
|
|
pub struct AuditAuthor {
|
|
pub username: String,
|
|
pub email: String,
|
|
pub username_override: Option<String>,
|
|
pub token_prefix: Option<String>,
|
|
}
|
|
|
|
impl<T: Authable> From<&T> for AuditAuthor {
|
|
fn from(value: &T) -> Self {
|
|
Self {
|
|
username: value.username().to_string(),
|
|
email: value.email().to_string(),
|
|
username_override: None,
|
|
token_prefix: None,
|
|
}
|
|
}
|
|
}
|