Enum hrobot::error::ApiError

source ·
pub enum ApiError {
Show 60 variants Unavailable, NotFound { message: String, }, ServerNotFound { message: String, }, IpNotFound { message: String, }, SubnetNotFound { message: String, }, MacNotFound { message: String, }, MacNotAvailable { message: String, }, MacAlreadySet { message: String, }, MacFailed { message: String, }, WolNotAvailable { message: String, }, WolFailed { message: String, }, WindowsOutdatedVersion { message: String, }, WindowsMissingAddon { message: String, }, PleskMissingAddon { message: String, }, CpanelMissingAddon { message: String, }, RateLimitExceeded { message: String, max_request: u32, interval: u32, }, ResetNotAvailable { message: String, }, StorageboxNotFound { message: String, }, StorageboxSubaccountNotFound { message: String, }, StorageboxSubaccountLimitExceeded { message: String, }, SnapshotNotFound { message: String, }, SnapshotLimitExceeded { message: String, }, FirewallPortNotFound { message: String, }, FirewallNotAvailable { message: String, }, FirewallTemplateNotFound { message: String, }, FirewallInProcess { message: String, }, VswitchLimitReached { message: String, }, VswitchNotAvailable { message: String, }, VswitchServerLimitReached { message: String, }, VswitchPerServerLimitReached { message: String, }, VswitchInProcess { message: String, }, VswitchVlanNotUnique { message: String, }, ResetManualActive { message: String, }, KeyUpdateFailed { message: String, }, KeyCreateFailed { message: String, }, KeyDeleteFailed { message: String, }, KeyAlreadyExists { message: String, }, RdnsNotFound { message: String, }, RdnsCreateFailed { message: String, }, RdnsUpdateFailed { message: String, }, RdnsDeleteFailed { message: String, }, RdnsAlreadyExists { message: String, }, ResetFailed { message: String, }, InvalidInput { message: String, missing: Vec<String>, invalid: Vec<String>, }, Conflict { message: String, }, ServerCancellationReserveLocationFalseOnly { message: String, }, TrafficWarningUpdateFailed { message: String, }, BootNotAvailable { message: String, }, InternalError { message: String, }, FailoverAlreadyRouted { message: String, }, FailoverFailed { message: String, }, FailoverLocked { message: String, }, FailoverNotComplete { message: String, }, FailoverNewServerNotFound { message: String, }, ServerReversalNotPossible { message: String, }, BootActivationFailed { message: String, }, BootDeactivationFailed { message: String, }, BootAlreadyEnabled { message: String, }, BootBlocked { message: String, }, Generic(GenericError),
}
Expand description

Error returned by the Hetzner Robot API.

Variants§

§

Unavailable

Resource Unavailable.

§

NotFound

Fields

§message: String

Human-readable message associated with the error.

Resource not found.

§

ServerNotFound

Fields

§message: String

Human-readable message associated with the error.

Server not found.

§

IpNotFound

Fields

§message: String

Human-readable message associated with the error.

IP address not found.

§

SubnetNotFound

Fields

§message: String

Human-readable message associated with the error.

Subnet not found.

§

MacNotFound

Fields

§message: String

Human-readable message associated with the error.

MAC address not found.

§

MacNotAvailable

Fields

§message: String

Human-readable message associated with the error.

MAC address not available.

§

MacAlreadySet

Fields

§message: String

Human-readable message associated with the error.

MAC address already set.

§

MacFailed

Fields

§message: String

Human-readable message associated with the error.

MAC address failure.

§

WolNotAvailable

Fields

§message: String

Human-readable message associated with the error.

Wake-on-LAN not available.

§

WolFailed

Fields

§message: String

Human-readable message associated with the error.

Wake-on-LAN failed.

§

WindowsOutdatedVersion

Fields

§message: String

Human-readable message associated with the error.

Outdated Windows version.

§

WindowsMissingAddon

Fields

§message: String

Human-readable message associated with the error.

Missing Windows addon.

§

PleskMissingAddon

Fields

§message: String

Human-readable message associated with the error.

Missing Plesk addon.

§

CpanelMissingAddon

Fields

§message: String

Human-readable message associated with the error.

Missing CPanel addon.

§

RateLimitExceeded

Fields

§message: String

Human-readable message associated with the error.

§max_request: u32

Maximum number of requests allowed within the specified interval.

§interval: u32

Interval within which the max_requests are the limit.

API Rate limit exceeded.

§

ResetNotAvailable

Fields

§message: String

Human-readable message associated with the error.

Reset not available.

§

StorageboxNotFound

Fields

§message: String

Human-readable message associated with the error.

Storage Box not found.

§

StorageboxSubaccountNotFound

Fields

§message: String

Human-readable message associated with the error.

Storage Box sub-account not found.

§

StorageboxSubaccountLimitExceeded

Fields

§message: String

Human-readable message associated with the error.

Storage Box sub-account limit exceeded.

§

SnapshotNotFound

Fields

§message: String

Human-readable message associated with the error.

Snapshot not found.

§

SnapshotLimitExceeded

Fields

§message: String

Human-readable message associated with the error.

Snapshot limit exceeded.

§

FirewallPortNotFound

Fields

§message: String

Human-readable message associated with the error.

Firewall port not found.

§

FirewallNotAvailable

Fields

§message: String

Human-readable message associated with the error.

Firewall not available.

§

FirewallTemplateNotFound

Fields

§message: String

Human-readable message associated with the error.

Firewall template not found.

§

FirewallInProcess

Fields

§message: String

Human-readable message associated with the error.

Firewall is already processing a request.

§

VswitchLimitReached

Fields

§message: String

Human-readable message associated with the error.

vSwitch limit reached.

§

VswitchNotAvailable

Fields

§message: String

Human-readable message associated with the error.

vSwitch not available.

§

VswitchServerLimitReached

Fields

§message: String

Human-readable message associated with the error.

vSwitch server limit reached.

§

VswitchPerServerLimitReached

Fields

§message: String

Human-readable message associated with the error.

vSwitch-per-server limit reached.

§

VswitchInProcess

Fields

§message: String

Human-readable message associated with the error.

vSwitch is already processing a request.

§

VswitchVlanNotUnique

Fields

§message: String

Human-readable message associated with the error.

vSwitch VLAN-ID is not unique.

§

ResetManualActive

Fields

§message: String

Human-readable message associated with the error.

Manual reset is active.

§

KeyUpdateFailed

Fields

§message: String

Human-readable message associated with the error.

Key update failed.

§

KeyCreateFailed

Fields

§message: String

Human-readable message associated with the error.

Key creation failed.

§

KeyDeleteFailed

Fields

§message: String

Human-readable message associated with the error.

Key deletion failed.

§

KeyAlreadyExists

Fields

§message: String

Human-readable message associated with the error.

Key already exists.

§

RdnsNotFound

Fields

§message: String

Human-readable message associated with the error.

Reverse DNS entry not found.

§

RdnsCreateFailed

Fields

§message: String

Human-readable message associated with the error.

Reverse DNS entry creation failed.

§

RdnsUpdateFailed

Fields

§message: String

Human-readable message associated with the error.

Reverse DNS update failed.

§

RdnsDeleteFailed

Fields

§message: String

Human-readable message associated with the error.

Reverse DNS entry deletion failed.

§

RdnsAlreadyExists

Fields

§message: String

Human-readable message associated with the error.

Reverse DNS entry already exists.

§

ResetFailed

Fields

§message: String

Human-readable message associated with the error.

Reset failed.

§

InvalidInput

Fields

§message: String

Human-readable message associated with the error.

§missing: Vec<String>

List of fields that are missing from the request.

§invalid: Vec<String>

List of fields which contained invalid data.

Invalid input.

§

Conflict

Fields

§message: String

Human-readable message associated with the error.

Conflict.

§

ServerCancellationReserveLocationFalseOnly

Fields

§message: String

Human-readable message associated with the error.

Server cancellation “reserve location” must be false.

§

TrafficWarningUpdateFailed

Fields

§message: String

Human-readable message associated with the error.

Traffic warning update failed.

§

BootNotAvailable

Fields

§message: String

Human-readable message associated with the error.

Boot is not available.

§

InternalError

Fields

§message: String

Human-readable message associated with the error.

Internal Error.

§

FailoverAlreadyRouted

Fields

§message: String

Human-readable message associated with the error.

Failover is already routed.

§

FailoverFailed

Fields

§message: String

Human-readable message associated with the error.

Failover failed.

§

FailoverLocked

Fields

§message: String

Human-readable message associated with the error.

Failover is locked.

§

FailoverNotComplete

Fields

§message: String

Human-readable message associated with the error.

Failover not complete.

§

FailoverNewServerNotFound

Fields

§message: String

Human-readable message associated with the error.

New failover server not found.

§

ServerReversalNotPossible

Fields

§message: String

Human-readable message associated with the error.

Withdrawal of server order not possible.

§

BootActivationFailed

Fields

§message: String

Human-readable message associated with the error.

Boot activation failed.

§

BootDeactivationFailed

Fields

§message: String

Human-readable message associated with the error.

Boot deactivation failed.

§

BootAlreadyEnabled

Fields

§message: String

Human-readable message associated with the error.

Boot already enabled.

§

BootBlocked

Fields

§message: String

Human-readable message associated with the error.

Boot blocked.

§

Generic(GenericError)

Unknown/generic error.

Trait Implementations§

source§

impl Debug for ApiError

source§

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

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

impl<'de> Deserialize<'de> for ApiError

source§

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 Display for ApiError

source§

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

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

impl Error for ApiError

1.30.0 · source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<ApiError> for Error

source§

fn from(source: ApiError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere 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> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

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 Twhere U: TryFrom<T>,

§

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.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,