]> git.proxmox.com Git - rustc.git/blame - src/tools/rustfmt/tests/target/issue-2869.rs
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / rustfmt / tests / target / issue-2869.rs
CommitLineData
f20569fa
XL
1// rustfmt-struct_field_align_threshold: 50
2
3#[derive(Serialize, Deserialize, Debug)]
4#[serde(rename_all = "PascalCase")]
5struct AuditLog1 {
6 creation_time: String,
7 id: String,
8 operation: String,
9 organization_id: String,
10 record_type: u32,
11 result_status: Option<String>,
12 #[serde(rename = "ClientIP")]
13 client_ip: Option<IpAddr>,
14 object_id: String,
15 actor: Option<Vec<IDType>>,
16 actor_context_id: Option<String>,
17 actor_ip_address: Option<IpAddr>,
18 azure_active_directory_event_type: Option<u8>,
19
20 #[serde(rename = "very")]
21 aaaaa: String,
22 #[serde(rename = "cool")]
23 bb: i32,
24}
25
26#[derive(Serialize, Deserialize, Debug)]
27#[serde(rename_all = "PascalCase")]
28struct AuditLog2 {
29 creation_time: String,
30 id: String,
31 operation: String,
32 organization_id: String,
33 record_type: u32,
34 result_status: Option<String>,
35 client_ip: Option<IpAddr>,
36 object_id: String,
37 actor: Option<Vec<IDType>>,
38 actor_context_id: Option<String>,
39 actor_ip_address: Option<IpAddr>,
40 azure_active_directory_event_type: Option<u8>,
41}