pub struct StructDef {
pub name: String,
pub module_path: String,
pub qualified_name: String,
pub visibility: String,
pub cfg_predicates: Vec<String>,
pub fields: Vec<FieldDef>,
pub span: SrcSpan,
}Fields§
§name: String§module_path: StringRust module containing the definition ("" means the crate root).
qualified_name: StringModule-qualified identity, for example model::encoder::Encoder.
visibility: StringSource spelling of the visibility. Private items use the empty string.
cfg_predicates: Vec<String>#[cfg(...)] predicates inherited from inline modules and attached to this definition.
fields: Vec<FieldDef>§span: SrcSpanTrait Implementations§
Auto Trait Implementations§
impl Freeze for StructDef
impl RefUnwindSafe for StructDef
impl Send for StructDef
impl Sync for StructDef
impl Unpin for StructDef
impl UnsafeUnpin for StructDef
impl UnwindSafe for StructDef
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