27 lines
506 B
Rust
27 lines
506 B
Rust
// rustfmt-same_line_attributes: false
|
|
// Option to place attributes on the same line as fields and variants where possible
|
|
|
|
enum Lorem {
|
|
#[serde(skip_serializing)]
|
|
Ipsum,
|
|
#[serde(skip_serializing)]
|
|
Dolor,
|
|
#[serde(skip_serializing)]
|
|
Amet,
|
|
}
|
|
|
|
struct Lorem {
|
|
#[serde(rename = "Ipsum")]
|
|
ipsum: usize,
|
|
#[serde(rename = "Dolor")]
|
|
dolor: usize,
|
|
#[serde(rename = "Amet")]
|
|
amet: usize,
|
|
}
|
|
|
|
// #1943
|
|
pub struct Bzip2 {
|
|
#[serde(rename = "level")]
|
|
level: i32,
|
|
}
|