pub struct StructInfo {
pub name: String,
pub simple_name: String,
pub module_path: String,
pub fields: Vec<FieldInfo>,
pub is_tuple_struct: bool,
pub is_unit_struct: bool,
}Expand description
Complete information about a struct
Fields§
§name: StringThe full name of the struct (e.g., “std::string::String”)
simple_name: StringThe simple name without module path (e.g., “String”)
module_path: StringThe module path (e.g., “std::string”)
fields: Vec<FieldInfo>List of fields in the struct
is_tuple_struct: boolWhether the struct is a tuple struct
is_unit_struct: boolWhether the struct is a unit struct
Implementations§
Trait Implementations§
Source§impl Clone for StructInfo
impl Clone for StructInfo
Source§fn clone(&self) -> StructInfo
fn clone(&self) -> StructInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StructInfo
impl Debug for StructInfo
Source§impl<'de> Deserialize<'de> for StructInfo
impl<'de> Deserialize<'de> for StructInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StructInfo
impl PartialEq for StructInfo
Source§impl Serialize for StructInfo
impl Serialize for StructInfo
impl Eq for StructInfo
impl StructuralPartialEq for StructInfo
Auto Trait Implementations§
impl Freeze for StructInfo
impl RefUnwindSafe for StructInfo
impl Send for StructInfo
impl Sync for StructInfo
impl Unpin for StructInfo
impl UnwindSafe for StructInfo
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