mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-03-29 08:50:10 +00:00
Explain code being splatted
See https://github.com/element-hq/matrix-authentication-service/pull/5553#discussion_r2984636426
This commit is contained in:
@@ -82,6 +82,10 @@ pub struct Violation {
|
|||||||
pub redirect_uri: Option<String>,
|
pub redirect_uri: Option<String>,
|
||||||
pub field: Option<String>,
|
pub field: Option<String>,
|
||||||
|
|
||||||
|
// We flatten as policies expect `code` as another top-level field.
|
||||||
|
//
|
||||||
|
// This also means all of the extra fields from the variant will be splatted at this
|
||||||
|
// level which is fine (arbitrary).
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
pub variant: Option<ViolationVariant>,
|
pub variant: Option<ViolationVariant>,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user