pub struct ExportInfo {
pub name: ExportName,
pub local_name: Option<String>,
pub is_type_only: bool,
pub is_side_effect_used: bool,
pub visibility: VisibilityTag,
pub expected_unused_reason: Option<String>,
pub deprecated: bool,
pub deprecated_reason: Option<Box<str>>,
pub span: Span,
pub members: Vec<MemberInfo>,
pub super_class: Option<String>,
}Expand description
An export declaration.
Fields§
§name: ExportNameThe exported name (named or default).
local_name: Option<String>The local binding name, if different from the exported name.
is_type_only: boolWhether this is a type-only export (export type).
is_side_effect_used: boolWhether this export is registered through a runtime side effect at module load time.
visibility: VisibilityTagVisibility tag from JSDoc/TSDoc comment.
expected_unused_reason: Option<String>Human-authored reason on @expected-unused -- <reason>, when present.
deprecated: boolWhether the leading JSDoc carries a @deprecated tag. Orthogonal to
visibility: @public @deprecated is a normal combination.
deprecated_reason: Option<Box<str>>Plain-text @deprecated message, capped at
DEPRECATED_REASON_MAX_CHARS characters. None for a bare tag.
span: SpanSource span of the export declaration.
members: Vec<MemberInfo>Members of this export (for enums, classes, and namespaces).
super_class: Option<String>The local name of the parent class from extends clause, if any.
Trait Implementations§
Source§impl Clone for ExportInfo
impl Clone for ExportInfo
Source§impl Debug for ExportInfo
impl Debug for ExportInfo
Auto Trait Implementations§
impl Freeze for ExportInfo
impl RefUnwindSafe for ExportInfo
impl Send for ExportInfo
impl Sync for ExportInfo
impl Unpin for ExportInfo
impl UnsafeUnpin for ExportInfo
impl UnwindSafe for ExportInfo
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