Add #[from_ref(skip)] (#1537)

For skipping individual fields.
This commit is contained in:
David Pedersen
2022-11-18 12:05:10 +01:00
committed by GitHub
parent 64960bb19c
commit 7d58d49817
5 changed files with 84 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
use axum_macros::FromRef;
#[derive(Clone, FromRef)]
struct AppState {
auth_token: String,
#[from_ref(skip)]
also_string: String,
}
fn main() {}