mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-16 19:59:03 +01:00
7d58d49817
For skipping individual fields.
10 lines
158 B
Rust
10 lines
158 B
Rust
use axum_macros::FromRef;
|
|
|
|
#[derive(Clone, FromRef)]
|
|
struct AppState {
|
|
auth_token: String,
|
|
#[from_ref(skip)]
|
|
also_string: String,
|
|
}
|
|
|
|
fn main() {}
|