Files
windmill/backend/windmill-common/src/audit.rs
T
Ruben Fiszel 651681b7ef fix(backend): add presigned url support for object storage (#7328)
* presigned

* all

* all

* all

* all

* all

* all

* all

* nit

* nit

* ee-ref

* presigned

* presigned
2025-12-10 15:35:26 +00:00

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,
}
}
}