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

Resource not found.

Fields

§message: String

Human-readable message associated with the error.

§

ServerNotFound

Server not found.

Fields

§message: String

Human-readable message associated with the error.

§

IpNotFound

IP address not found.

Fields

§message: String

Human-readable message associated with the error.

§

SubnetNotFound

Subnet not found.

Fields

§message: String

Human-readable message associated with the error.

§

MacNotFound

MAC address not found.

Fields

§message: String

Human-readable message associated with the error.

§

MacNotAvailable

MAC address not available.

Fields

§message: String

Human-readable message associated with the error.

§

MacAlreadySet

MAC address already set.

Fields

§message: String

Human-readable message associated with the error.

§

MacFailed

MAC address failure.

Fields

§message: String

Human-readable message associated with the error.

§

WolNotAvailable

Wake-on-LAN not available.

Fields

§message: String

Human-readable message associated with the error.

§

WolFailed

Wake-on-LAN failed.

Fields

§message: String

Human-readable message associated with the error.

§

WindowsOutdatedVersion

Outdated Windows version.

Fields

§message: String

Human-readable message associated with the error.

§

WindowsMissingAddon

Missing Windows addon.

Fields

§message: String

Human-readable message associated with the error.

§

PleskMissingAddon

Missing Plesk addon.

Fields

§message: String

Human-readable message associated with the error.

§

CpanelMissingAddon

Missing CPanel addon.

Fields

§message: String

Human-readable message associated with the error.

§

RateLimitExceeded

API Rate limit exceeded.

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.

§

ResetNotAvailable

Reset not available.

Fields

§message: String

Human-readable message associated with the error.

§

StorageboxNotFound

Storage Box not found.

Fields

§message: String

Human-readable message associated with the error.

§

StorageboxSubaccountNotFound

Storage Box sub-account not found.

Fields

§message: String

Human-readable message associated with the error.

§

StorageboxSubaccountLimitExceeded

Storage Box sub-account limit exceeded.

Fields

§message: String

Human-readable message associated with the error.

§

SnapshotNotFound

Snapshot not found.

Fields

§message: String

Human-readable message associated with the error.

§

SnapshotLimitExceeded

Snapshot limit exceeded.

Fields

§message: String

Human-readable message associated with the error.

§

FirewallPortNotFound

Firewall port not found.

Fields

§message: String

Human-readable message associated with the error.

§

FirewallNotAvailable

Firewall not available.

Fields

§message: String

Human-readable message associated with the error.

§

FirewallTemplateNotFound

Firewall template not found.

Fields

§message: String

Human-readable message associated with the error.

§

FirewallInProcess

Firewall is already processing a request.

Fields

§message: String

Human-readable message associated with the error.

§

VswitchLimitReached

vSwitch limit reached.

Fields

§message: String

Human-readable message associated with the error.

§

VswitchNotAvailable

vSwitch not available.

Fields

§message: String

Human-readable message associated with the error.

§

VswitchServerLimitReached

vSwitch server limit reached.

Fields

§message: String

Human-readable message associated with the error.

§

VswitchPerServerLimitReached

vSwitch-per-server limit reached.

Fields

§message: String

Human-readable message associated with the error.

§

VswitchInProcess

vSwitch is already processing a request.

Fields

§message: String

Human-readable message associated with the error.

§

VswitchVlanNotUnique

vSwitch VLAN-ID is not unique.

Fields

§message: String

Human-readable message associated with the error.

§

ResetManualActive

Manual reset is active.

Fields

§message: String

Human-readable message associated with the error.

§

KeyUpdateFailed

Key update failed.

Fields

§message: String

Human-readable message associated with the error.

§

KeyCreateFailed

Key creation failed.

Fields

§message: String

Human-readable message associated with the error.

§

KeyDeleteFailed

Key deletion failed.

Fields

§message: String

Human-readable message associated with the error.

§

KeyAlreadyExists

Key already exists.

Fields

§message: String

Human-readable message associated with the error.

§

RdnsNotFound

Reverse DNS entry not found.

Fields

§message: String

Human-readable message associated with the error.

§

RdnsCreateFailed

Reverse DNS entry creation failed.

Fields

§message: String

Human-readable message associated with the error.

§

RdnsUpdateFailed

Reverse DNS update failed.

Fields

§message: String

Human-readable message associated with the error.

§

RdnsDeleteFailed

Reverse DNS entry deletion failed.

Fields

§message: String

Human-readable message associated with the error.

§

RdnsAlreadyExists

Reverse DNS entry already exists.

Fields

§message: String

Human-readable message associated with the error.

§

ResetFailed

Reset failed.

Fields

§message: String

Human-readable message associated with the error.

§

InvalidInput

Invalid input.

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.

§

Conflict

Conflict.

Fields

§message: String

Human-readable message associated with the error.

§

ServerCancellationReserveLocationFalseOnly

Server cancellation “reserve location” must be false.

Fields

§message: String

Human-readable message associated with the error.

§

TrafficWarningUpdateFailed

Traffic warning update failed.

Fields

§message: String

Human-readable message associated with the error.

§

BootNotAvailable

Boot is not available.

Fields

§message: String

Human-readable message associated with the error.

§

InternalError

Internal Error.

Fields

§message: String

Human-readable message associated with the error.

§

FailoverAlreadyRouted

Failover is already routed.

Fields

§message: String

Human-readable message associated with the error.

§

FailoverFailed

Failover failed.

Fields

§message: String

Human-readable message associated with the error.

§

FailoverLocked

Failover is locked.

Fields

§message: String

Human-readable message associated with the error.

§

FailoverNotComplete

Failover not complete.

Fields

§message: String

Human-readable message associated with the error.

§

FailoverNewServerNotFound

New failover server not found.

Fields

§message: String

Human-readable message associated with the error.

§

ServerReversalNotPossible

Withdrawal of server order not possible.

Fields

§message: String

Human-readable message associated with the error.

§

BootActivationFailed

Boot activation failed.

Fields

§message: String

Human-readable message associated with the error.

§

BootDeactivationFailed

Boot deactivation failed.

Fields

§message: String

Human-readable message associated with the error.

§

BootAlreadyEnabled

Boot already enabled.

Fields

§message: String

Human-readable message associated with the error.

§

BootBlocked

Boot blocked.

Fields

§message: String

Human-readable message associated with the error.

§

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 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> 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 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> ToString for T
where 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 T
where 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 T
where 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 T
where T: for<'de> Deserialize<'de>,