pub struct ParamInfo {
pub name: String,
pub description: Option<String>,
pub required: bool,
pub rust_type: TokenStream,
pub is_enum: bool,
pub enum_ident: Option<Ident>,
pub enum_values: Vec<String>,
}Fields§
§name: String§description: Option<String>§required: bool§rust_type: TokenStreamThe Rust type for this parameter (e.g. i64, String, or an enum ident).
is_enum: boolTrue when this param’s schema is a string enum (so we emit a dedicated enum type).
enum_ident: Option<Ident>The enum ident when is_enum is true, e.g. FindPetsByStatusStatusQuery.
enum_values: Vec<String>Enum values when is_enum is true.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParamInfo
impl RefUnwindSafe for ParamInfo
impl !Send for ParamInfo
impl !Sync for ParamInfo
impl Unpin for ParamInfo
impl UnsafeUnpin for ParamInfo
impl UnwindSafe for ParamInfo
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