pub trait DeleteZone: Provider {
type CustomDeleteError: Debug;
// Required method
fn delete_zone(
&self,
zone_id: &str,
) -> impl Future<Output = Result<(), DeleteZoneError<Self::CustomDeleteError>>>;
}
Expand description
Represents a Provider
that supports zone deletion.
Required Associated Types§
Sourcetype CustomDeleteError: Debug
type CustomDeleteError: Debug
The provider-specific custom zone deletion error type used for DeleteZoneError::Custom
.
If no custom errors should be provided, use ()
.
Required Methods§
Sourcefn delete_zone(
&self,
zone_id: &str,
) -> impl Future<Output = Result<(), DeleteZoneError<Self::CustomDeleteError>>>
fn delete_zone( &self, zone_id: &str, ) -> impl Future<Output = Result<(), DeleteZoneError<Self::CustomDeleteError>>>
Deletes a zone by its provider-specific ID.
Refer to the provider’s documentation to figure out which value is used as the ID.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.