usecrate::{
BoxStr,
Field,};/// Represents a struct defined in Rust.
#[derive(Debug, Clone)]pubstructStruct{pub(crate)public:bool,
pub(crate)ident: BoxStr,
pub(crate)fields:Vec<Field>,
}implStruct{/// Return the identifier of the struct as a string.
pubfnident(&self)->&str{&self.ident
}}