Enum ErrorKind

Source
pub enum ErrorKind {
    NoUploadPath,
    MetadataDecodeError,
}
Expand description

Main error enum for Please Package Manager. For more infomation on each type of Error, please view each of their individual docs.

To easily get a description of each error, please refer to the implament method that’s coming soon.

Variants§

§

NoUploadPath

When the publish_package function didn’t get a package path and could not determine the current running path. This commonly happens when it is being ran directly from functions instead of the API.

§

MetadataDecodeError

When the please.toml/please.json file could not be decoded properly. This error should be raised if the toml/json file has incorrect syntax.

Trait Implementations§

Source§

impl Debug for ErrorKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl StringRep for ErrorKind

Source§

fn str_rep(&self) -> &'static str

Represent an error generically, allowing the use of a str.

Source§

fn string_rep(&self) -> String

Represent the ErrorKind as a customised error, allowing more detailed responses at the cost of using a heap-allocated String.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.