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§fn clone(&self) -> ExportInfo
fn clone(&self) -> ExportInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExportInfo
impl Debug for ExportInfo
Source§impl Serialize for ExportInfo
impl Serialize for ExportInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more