(
&self,
domain: &str,
flags: u8,
tag: &str,
value: &str,
)
| 297 | } |
| 298 | |
| 299 | async fn add_caa_record( |
| 300 | &self, |
| 301 | domain: &str, |
| 302 | flags: u8, |
| 303 | tag: &str, |
| 304 | value: &str, |
| 305 | ) -> Result<String> { |
| 306 | let response = self |
| 307 | .add_record(&json!({ |
| 308 | "type": "CAA", |
| 309 | "name": domain, |
| 310 | "data": { |
| 311 | "flags": flags, |
| 312 | "tag": tag, |
| 313 | "value": value |
| 314 | } |
| 315 | })) |
| 316 | .await?; |
| 317 | Ok(response.result.id) |
| 318 | } |
| 319 | |
| 320 | async fn get_records(&self, domain: &str) -> Result<Vec<Record>> { |
| 321 | self.get_records_inner(domain).await |
no test coverage detected