pub struct TypeDetails {Show 15 fields
pub name: String,
pub path: String,
pub kind: TypeKind,
pub visibility: Visibility,
pub generics: Vec<GenericParam>,
pub where_clause: Option<String>,
pub docs: Option<String>,
pub attributes: Vec<String>,
pub fields: Option<Vec<FieldInfo>>,
pub variants: Option<Vec<EnumVariantInfo>>,
pub trait_impls: Vec<String>,
pub inherent_methods: Vec<MethodSummary>,
pub layout: Option<LayoutInfo>,
pub source: Option<String>,
pub span: Option<SpanInfo>,
}Expand description
Detailed information about a type.
Fieldsยง
ยงname: Stringยงpath: Stringยงkind: TypeKindยงvisibility: Visibilityยงgenerics: Vec<GenericParam>ยงwhere_clause: Option<String>ยงdocs: Option<String>Doc comments
attributes: Vec<String>Attributes (as strings)
fields: Option<Vec<FieldInfo>>For structs: fields
variants: Option<Vec<EnumVariantInfo>>For enums: variants
trait_impls: Vec<String>All trait implementations
inherent_methods: Vec<MethodSummary>Inherent methods
layout: Option<LayoutInfo>Layout information (if available)
source: Option<String>Original source code (if available)
span: Option<SpanInfo>Trait Implementationsยง
Sourceยงimpl Clone for TypeDetails
impl Clone for TypeDetails
Sourceยงfn clone(&self) -> TypeDetails
fn clone(&self) -> TypeDetails
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 TypeDetails
impl Debug for TypeDetails
Sourceยงimpl<'de> Deserialize<'de> for TypeDetails
impl<'de> Deserialize<'de> for TypeDetails
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 TypeDetails
impl RefUnwindSafe for TypeDetails
impl Send for TypeDetails
impl Sync for TypeDetails
impl Unpin for TypeDetails
impl UnwindSafe for TypeDetails
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