pub struct StructInfo {
pub name: String,
pub doc_comment: Option<String>,
pub file_path: String,
pub line_number: usize,
pub visibility: Visibility,
pub generics: Vec<String>,
pub derives: Vec<String>,
pub attributes: Vec<String>,
pub fields: Vec<FieldInfo>,
pub methods: Vec<MethodInfo>,
}Expand description
Represents a parsed Rust struct with its fields and documentation.
Fields§
§name: StringThe name of the struct.
doc_comment: Option<String>Documentation comment for the struct.
file_path: StringThe file where this struct is defined.
line_number: usizeLine number where the struct starts.
visibility: VisibilityVisibility of the struct.
generics: Vec<String>Generic parameters if any.
derives: Vec<String>Derive macros applied to this struct.
attributes: Vec<String>Other attributes on the struct.
fields: Vec<FieldInfo>Fields of the struct.
methods: Vec<MethodInfo>Methods implemented on this struct.
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
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