Trait DeleteZone

Source
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§

Source

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§

Source

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.

Implementors§