forked from s3s-project/s3s
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorder.rs
More file actions
37 lines (35 loc) · 802 Bytes
/
order.rs
File metadata and controls
37 lines (35 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
pub fn struct_member_order(shape_name: &str) -> Option<&'static [&'static str]> {
match shape_name {
"ListObjectsOutput" => Some(LIST_OBJECTS_OUTPUT_ORDER),
"ListObjectsV2Output" => Some(LIST_OBJECTS_V2_OUTPUT_ORDER),
_ => None,
}
}
const LIST_OBJECTS_OUTPUT_ORDER: &[&str] = &[
"Name",
"Prefix",
"Marker",
"MaxKeys",
"IsTruncated",
"Contents",
"CommonPrefixes",
"Delimiter",
"NextMarker",
"EncodingType",
"RequestCharged",
];
const LIST_OBJECTS_V2_OUTPUT_ORDER: &[&str] = &[
"Name",
"Prefix",
"MaxKeys",
"KeyCount",
"ContinuationToken",
"IsTruncated",
"NextContinuationToken",
"Contents",
"CommonPrefixes",
"Delimiter",
"EncodingType",
"StartAfter",
"RequestCharged",
];