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§
Sourcetype CustomCreateError: Debug
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§
Sourcefn create_record(
&self,
host: &str,
data: &RecordData,
ttl: u64,
) -> impl Future<Output = Result<Record, CreateRecordError<Self::CustomCreateError>>>
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.