wasmio_aws_types/types/common.rs
1use derivative::Derivative;
2use derive_builder::Builder;
3use serde::{Deserialize, Serialize};
4
5/// Container for all (if there are any) keys between Prefix and the next
6/// occurrence of the string specified by a delimiter. CommonPrefixes lists keys
7/// that act like subdirectories in the directory specified by Prefix. For
8/// example, if the prefix is notes/ and the delimiter is a slash (/) as in
9/// notes/summer/july, the common prefix is notes/summer/.
10#[derive(Derivative, Default, Builder, Serialize, Deserialize)]
11#[derivative(Debug)]
12#[builder(pattern = "owned", setter(into), default)]
13#[serde(rename_all = "PascalCase")]
14pub struct CommonPrefix {
15 /// Container for the specified common prefix.
16 pub prefix: Option<String>,
17}