pub enum QuerySerialization {
FormExplodedObject,
FormObject,
DeepObject,
FormExplodedArray {
item_type: ArrayItemType,
},
FormArray {
item_type: ArrayItemType,
},
}Expand description
How the client serializes an object- or array-schema query parameter
onto the request URL. Consumed by ClientGenerator::generate_query_params
and get_param_rust_type; server codegen and the registry deliberately
keep the String fallback for now (openapi-generator-0jz).
Variants§
FormExplodedObject
style=form + explode=true object (the OAS 3.x defaults for query):
each property is its own pair — ?color=red&size=big. The parameter
name never appears in the query string (RFC 6570 form-explosion).
FormObject
style=form + explode=false object: one comma-joined key,value list —
?filter=color,red,size,big.
DeepObject
style=deepObject (explode=true) object: bracketed keys —
?filter[color]=red.
FormExplodedArray
style=form + explode=true array: repeated pairs — ?tags=a&tags=b.
Parameter typed Vec<item_type>.
Fields
item_type: ArrayItemTypeFormArray
style=form + explode=false array: one comma-joined pair —
?tags=a,b,c. Parameter typed Vec<item_type>.
Fields
item_type: ArrayItemTypeTrait Implementations§
Source§impl Clone for QuerySerialization
impl Clone for QuerySerialization
Source§fn clone(&self) -> QuerySerialization
fn clone(&self) -> QuerySerialization
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more