pub struct Cloudflare { /* private fields */ }Expand description
Synchronous Cloudflare DNS provider implementation.
Holds configuration and authentication state for performing API calls.
Implementations§
Trait Implementations§
Source§impl DnsProvider for Cloudflare
impl DnsProvider for Cloudflare
Source§fn get_record<T>(&self, rtype: RecordType, host: &str) -> Result<Option<T>>where
T: DeserializeOwned,
fn get_record<T>(&self, rtype: RecordType, host: &str) -> Result<Option<T>>where
T: DeserializeOwned,
Get a DNS record by host and record type.
Source§fn create_record<T>(
&self,
rtype: RecordType,
host: &str,
record: &T,
) -> Result<()>where
T: Display,
fn create_record<T>(
&self,
rtype: RecordType,
host: &str,
record: &T,
) -> Result<()>where
T: Display,
Create a new DNS record by host and record type.
Source§fn update_record<T>(
&self,
rtype: RecordType,
host: &str,
urec: &T,
) -> Result<()>where
T: DeserializeOwned + Display,
fn update_record<T>(
&self,
rtype: RecordType,
host: &str,
urec: &T,
) -> Result<()>where
T: DeserializeOwned + Display,
Update a DNS record by host and record type.
Source§fn delete_record(&self, rtype: RecordType, host: &str) -> Result<()>
fn delete_record(&self, rtype: RecordType, host: &str) -> Result<()>
Delete a DNS record by host and record type.
Source§fn delete_all_records(&self, rtype: RecordType, host: &str) -> Result<()>
fn delete_all_records(&self, rtype: RecordType, host: &str) -> Result<()>
Delete all DNS records matching host and record type.
Source§fn create_txt_record(&self, host: &str, record: &str) -> Result<()>
fn create_txt_record(&self, host: &str, record: &str) -> Result<()>
Create a new TXT record. Read more
Source§fn update_txt_record(&self, host: &str, record: &str) -> Result<()>
fn update_txt_record(&self, host: &str, record: &str) -> Result<()>
Update a TXT record. Read more
Source§fn create_a_record(&self, host: &str, record: &Ipv4Addr) -> Result<()>
fn create_a_record(&self, host: &str, record: &Ipv4Addr) -> Result<()>
Create a new A record. Read more
Auto Trait Implementations§
impl !Freeze for Cloudflare
impl RefUnwindSafe for Cloudflare
impl Send for Cloudflare
impl Sync for Cloudflare
impl Unpin for Cloudflare
impl UnsafeUnpin for Cloudflare
impl UnwindSafe for Cloudflare
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