Trait CreateRecord

Source
pub trait CreateRecord: Zone {
    type CustomCreateError: Debug;

    // Required method
    fn create_record(
        &self,
        host: &str,
        data: &RecordData,
        ttl: u64,
    ) -> impl Future<Output = Result<Record, CreateRecordError<Self::CustomCreateError>>>;
}
Expand description

Represents a Zone that supports record creation.

Required Associated Types§

Source

type CustomCreateError: Debug

The provider-specific custom record creation error type used for CreateRecordError::Custom.
If no custom errors should be provided, use ().

Required Methods§

Source

fn create_record( &self, host: &str, data: &RecordData, ttl: u64, ) -> impl Future<Output = Result<Record, CreateRecordError<Self::CustomCreateError>>>

Creates a new record.

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§