pub struct InvalidPackageTargetError {
pub pkg_json_path: PathBuf,
pub sub_path: String,
pub target: String,
pub is_import: bool,
pub maybe_referrer: Option<UrlOrPath>,
}Fields§
§pkg_json_path: PathBuf§sub_path: String§target: String§is_import: bool§maybe_referrer: Option<UrlOrPath>Trait Implementations§
Source§impl Debug for InvalidPackageTargetError
impl Debug for InvalidPackageTargetError
Source§impl Display for InvalidPackageTargetError
impl Display for InvalidPackageTargetError
Source§impl Error for InvalidPackageTargetError
impl Error for InvalidPackageTargetError
1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<InvalidPackageTargetError> for PackageTargetResolveErrorKind
impl From<InvalidPackageTargetError> for PackageTargetResolveErrorKind
Source§fn from(source: InvalidPackageTargetError) -> Self
fn from(source: InvalidPackageTargetError) -> Self
Converts to this type from the input type.
Source§impl JsErrorClass for InvalidPackageTargetError
impl JsErrorClass for InvalidPackageTargetError
Source§fn get_message(&self) -> Cow<'static, str>
fn get_message(&self) -> Cow<'static, str>
Represents the error message used in JavaScript side.
Source§fn get_additional_properties(&self) -> AdditionalProperties
fn get_additional_properties(&self) -> AdditionalProperties
Additional properties that should be defined on the error in JavaScript side.
fn get_ref(&self) -> &(dyn Error + Send + Sync + 'static)
Source§impl NodeJsErrorCoded for InvalidPackageTargetError
impl NodeJsErrorCoded for InvalidPackageTargetError
fn code(&self) -> NodeJsErrorCode
Auto Trait Implementations§
impl Freeze for InvalidPackageTargetError
impl RefUnwindSafe for InvalidPackageTargetError
impl Send for InvalidPackageTargetError
impl Sync for InvalidPackageTargetError
impl Unpin for InvalidPackageTargetError
impl UnwindSafe for InvalidPackageTargetError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more