pub enum ApiError {
ProjectNotFound,
InvalidName,
InvalidPath,
AlreadyExists,
Deleted,
}
Variants§
ProjectNotFound
InvalidName
A name contained an invalid character. Currently, the only disallowed
character is /
.
InvalidPath
An absolute path was expected, but the path provided did not include a
leading /
.
AlreadyExists
An attempt at creating a file failed because a file already existed.
Deleted
The file was deleted during the operation.
Trait Implementations§
source§impl<'de> Deserialize<'de> for ApiError
impl<'de> Deserialize<'de> for ApiError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Error for ApiError
impl Error for ApiError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()