pub struct CodegenQueryParameters<'a> { /* private fields */ }Expand description
Generates a query parameter struct for an API operation.
The generated struct is named {OperationId}Query.
It bundles all query parameters for that operation,
derives Serialize, and has an associated STYLES table
with per-parameter serialization style overrides.
Implementations§
Source§impl<'a> CodegenQueryParameters<'a>
impl<'a> CodegenQueryParameters<'a>
Sourcepub fn new(op: &'a OperationView<'a>) -> Self
pub fn new(op: &'a OperationView<'a>) -> Self
Creates a new query parameter struct for the given operation.
Trait Implementations§
Source§impl<'a> Debug for CodegenQueryParameters<'a>
impl<'a> Debug for CodegenQueryParameters<'a>
Source§impl ToTokens for CodegenQueryParameters<'_>
impl ToTokens for CodegenQueryParameters<'_>
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Auto Trait Implementations§
impl<'a> Freeze for CodegenQueryParameters<'a>
impl<'a> !RefUnwindSafe for CodegenQueryParameters<'a>
impl<'a> Send for CodegenQueryParameters<'a>
impl<'a> Sync for CodegenQueryParameters<'a>
impl<'a> Unpin for CodegenQueryParameters<'a>
impl<'a> UnsafeUnpin for CodegenQueryParameters<'a>
impl<'a> !UnwindSafe for CodegenQueryParameters<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty.