pub struct TypeInfo {
pub name: String,
pub is_generic: bool,
pub generic_args: Vec<TypeInfo>,
pub is_option: bool,
pub is_vec: bool,
}Expand description
Type information extracted from Rust code for OpenAPI schema generation.
This structure captures the essential information about a Rust type needed to generate an appropriate OpenAPI schema, including generic arguments and wrapper types.
Fields§
§name: StringThe base type name (e.g., “String”, “User”, “i32”)
is_generic: boolWhether this is a generic type with type parameters
generic_args: Vec<TypeInfo>Generic type arguments (e.g., for Vec<String>, contains TypeInfo for String)
is_option: boolWhether this type is wrapped in Option<T>
is_vec: boolWhether this type is a Vec<T> (array type)
Implementations§
Trait Implementations§
impl Eq for TypeInfo
impl StructuralPartialEq for TypeInfo
Auto Trait Implementations§
impl Freeze for TypeInfo
impl RefUnwindSafe for TypeInfo
impl Send for TypeInfo
impl Sync for TypeInfo
impl Unpin for TypeInfo
impl UnwindSafe for TypeInfo
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.