Enum openstack_cli::error::OpenStackCliError
source · #[non_exhaustive]pub enum OpenStackCliError {
Show 14 variants
SerializeJson {
source: Error,
},
OpenStackSDK {
source: OpenStackError,
},
OpenStackApi {
source: ApiError<RestError>,
},
ConfigError {
source: ConfigError,
},
NoSubcommands,
ResourceNotFound,
IdNotUnique,
IO {
source: Error,
},
Reqwest {
source: Error,
},
Clap {
source: Error,
},
Idinticatif {
source: TemplateError,
},
EndpointBuild(String),
ConnectionNotFound(String),
Other(Error),
}Expand description
CLI error type
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.
SerializeJson
Json serialization error
OpenStackSDK
Fields
§
source: OpenStackErrorThe source of the error.
SDK error
OpenStackApi
OpenStack API error
ConfigError
Fields
§
source: ConfigErrorThe source of the error.
Configuration error
NoSubcommands
No subcommands
ResourceNotFound
Resource is not found
IdNotUnique
Resource identifier is not unique
IO
IO error
Reqwest
Reqwest library error
Clap
Fields
§
source: ErrorThe source of the error.
Clap library error
Idinticatif
Fields
§
source: TemplateErrorThe source of the error.
Indicativ library error
EndpointBuild(String)
Endpoint builder error
ConnectionNotFound(String)
Connection error
Other(Error)
Others
Trait Implementations§
source§impl Debug for OpenStackCliError
impl Debug for OpenStackCliError
source§impl Display for OpenStackCliError
impl Display for OpenStackCliError
source§impl Error for OpenStackCliError
impl Error for OpenStackCliError
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()
source§impl From<ConfigError> for OpenStackCliError
impl From<ConfigError> for OpenStackCliError
source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
source§impl From<Error> for OpenStackCliError
impl From<Error> for OpenStackCliError
source§impl From<Error> for OpenStackCliError
impl From<Error> for OpenStackCliError
source§impl From<Error> for OpenStackCliError
impl From<Error> for OpenStackCliError
source§impl From<Error> for OpenStackCliError
impl From<Error> for OpenStackCliError
source§impl From<Error> for OpenStackCliError
impl From<Error> for OpenStackCliError
source§impl From<OpenStackError> for OpenStackCliError
impl From<OpenStackError> for OpenStackCliError
source§fn from(source: OpenStackError) -> Self
fn from(source: OpenStackError) -> Self
Converts to this type from the input type.
source§impl From<TemplateError> for OpenStackCliError
impl From<TemplateError> for OpenStackCliError
source§fn from(source: TemplateError) -> Self
fn from(source: TemplateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for OpenStackCliError
impl Send for OpenStackCliError
impl Sync for OpenStackCliError
impl Unpin for OpenStackCliError
impl !UnwindSafe for OpenStackCliError
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> Cell for Twhere
T: Display,
impl<T> Cell for Twhere
T: Display,
source§fn cell(self) -> CellStruct
fn cell(self) -> CellStruct
Converts raw type to cell of a table