pub enum CreateZoneError<T> {
Unauthorized,
InvalidDomainName,
Custom(T),
}
Expand description
Represents an error that occured when creating DNS zones using CreateZone::create_zone
.
Providers can provide a custom error type (CreateZone::CustomCreateError
) and return it using CreateZoneError::Custom
to extend the pool of well-defined errors.
Refer to the provider’s documentation for more information.
Variants§
Indicates that the DNS provider is not authorized to execute this action.
InvalidDomainName
Indicates that the specified domain name was not accepted.
Custom(T)
Provides a custom, provider-specific error of type T
.
Trait Implementations§
Source§impl<T: Clone> Clone for CreateZoneError<T>
impl<T: Clone> Clone for CreateZoneError<T>
Source§fn clone(&self) -> CreateZoneError<T>
fn clone(&self) -> CreateZoneError<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for CreateZoneError<T>
impl<T: Debug> Debug for CreateZoneError<T>
Source§impl<T> Display for CreateZoneError<T>where
T: Display,
impl<T> Display for CreateZoneError<T>where
T: Display,
Source§impl<T> Error for CreateZoneError<T>
impl<T> Error for CreateZoneError<T>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<T> From<T> for CreateZoneError<T>
impl<T> From<T> for CreateZoneError<T>
Source§impl<T: Hash> Hash for CreateZoneError<T>
impl<T: Hash> Hash for CreateZoneError<T>
Source§impl<T: PartialEq> PartialEq for CreateZoneError<T>
impl<T: PartialEq> PartialEq for CreateZoneError<T>
impl<T: Copy> Copy for CreateZoneError<T>
impl<T: Eq> Eq for CreateZoneError<T>
impl<T> StructuralPartialEq for CreateZoneError<T>
Auto Trait Implementations§
impl<T> Freeze for CreateZoneError<T>where
T: Freeze,
impl<T> RefUnwindSafe for CreateZoneError<T>where
T: RefUnwindSafe,
impl<T> Send for CreateZoneError<T>where
T: Send,
impl<T> Sync for CreateZoneError<T>where
T: Sync,
impl<T> Unpin for CreateZoneError<T>where
T: Unpin,
impl<T> UnwindSafe for CreateZoneError<T>where
T: UnwindSafe,
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