Set the default DNS credential ID
(&self, cred_id: &str)
| 761 | |
| 762 | /// Set the default DNS credential ID |
| 763 | pub fn set_default_dns_credential_id(&self, cred_id: &str) -> Result<()> { |
| 764 | self.persistent |
| 765 | .write() |
| 766 | .put_encoded(keys::DNS_CRED_DEFAULT.to_string(), &cred_id)?; |
| 767 | Ok(()) |
| 768 | } |
| 769 | |
| 770 | /// Get the default DNS credential (resolves the ID to the actual credential) |
| 771 | pub fn get_default_dns_credential(&self) -> Option<DnsCredential> { |
no test coverage detected