Enum specta_typescript::ExportError
source · #[non_exhaustive]pub enum ExportError {
BigIntForbidden(ExportPath),
Serde(SerdeError),
ForbiddenName(NamedLocation, ExportPath, &'static str),
InvalidName(NamedLocation, ExportPath, String),
InvalidTagging(ExportPath),
InvalidTaggedVariantContainingTupleStruct(ExportPath),
DuplicateTypeName(Cow<'static, str>, ImplLocation, ImplLocation),
Io(Error),
Fmt(Error),
Other(ExportPath, String),
}
Expand description
The error type for the TypeScript exporter.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BigIntForbidden(ExportPath)
Serde(SerdeError)
ForbiddenName(NamedLocation, ExportPath, &'static str)
InvalidName(NamedLocation, ExportPath, String)
InvalidTagging(ExportPath)
InvalidTaggedVariantContainingTupleStruct(ExportPath)
DuplicateTypeName(Cow<'static, str>, ImplLocation, ImplLocation)
Io(Error)
Fmt(Error)
Other(ExportPath, String)
Trait Implementations§
source§impl Debug for ExportError
impl Debug for ExportError
source§impl Display for ExportError
impl Display for ExportError
source§impl Error for ExportError
impl Error for ExportError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for ExportError
impl From<Error> for ExportError
source§impl From<Error> for ExportError
impl From<Error> for ExportError
source§impl From<SerdeError> for ExportError
impl From<SerdeError> for ExportError
source§fn from(source: SerdeError) -> Self
fn from(source: SerdeError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ExportError
impl PartialEq for ExportError
Auto Trait Implementations§
impl Freeze for ExportError
impl !RefUnwindSafe for ExportError
impl Send for ExportError
impl Sync for ExportError
impl Unpin for ExportError
impl !UnwindSafe for ExportError
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