pub struct QuerySerialization {
pub style: QueryStyleKind,
pub explode: bool,
pub is_array: bool,
pub array_item_type: Option<TokenStream>,
}Expand description
How a query parameter is serialized on the wire, resolved from its style,
explode, and schema shape. Populated with defaults for non-query params.
Fields§
§style: QueryStyleKindThe style keyword; defaults to QueryStyleKind::Form.
explode: boolResolved explode flag (spec default: true for form, false for the
other styles).
is_array: boolTrue when the schema is an array (the Rust type is Vec<T>).
array_item_type: Option<TokenStream>The element type T when Self::is_array is true, so the server can
parse array elements one at a time.
Trait Implementations§
Auto Trait Implementations§
impl !Send for QuerySerialization
impl !Sync for QuerySerialization
impl Freeze for QuerySerialization
impl RefUnwindSafe for QuerySerialization
impl Unpin for QuerySerialization
impl UnsafeUnpin for QuerySerialization
impl UnwindSafe for QuerySerialization
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more