pub enum ArrayItemType {
Scalar(String),
SchemaRef(String),
FlatStructRef {
schema_name: String,
properties: Vec<QueryStructProperty>,
},
NestedStructRef {
schema_name: String,
properties: Vec<QueryStructProperty>,
},
}Expand description
Item type of a typed array query parameter. The two variants need
different handling in codegen: scalars are already Rust type strings
(possibly paths like rust_decimal::Decimal from [type_mappings]),
while schema refs are raw schema names that must run through
to_rust_type_name sanitization (cloudflare:
resource-sharing_resource_type).
Variants§
Scalar(String)
A Rust scalar type string from the TypeMapper (String, i32, …).
SchemaRef(String)
The schema name of a referenced scalar alias or string enum.
FlatStructRef
The schema name of a referenced flat structure — every property is
scalar. Serialized AWS query-protocol style as
param.N.Prop=value per item (e.g. Tags.1.Key=k&Tags.1.Value=v).
Carries the wire property names so client and server emit identical
keys without re-resolving the schema.
NestedStructRef
A referenced structure with scalar properties plus arrays whose items
are scalar or flat structures. This is the deepest unambiguous shape
used by AWS query protocols (param.N.Prop.M.Leaf=value).
Trait Implementations§
Source§impl Clone for ArrayItemType
impl Clone for ArrayItemType
Source§fn clone(&self) -> ArrayItemType
fn clone(&self) -> ArrayItemType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more