mirror of
https://github.com/SeriousBug/gandi-live-dns-rust
synced 2024-05-17 02:39:03 -05:00
Kaan Barmore-Genç
90c5485cce
* wip * wip implement test * complete test * add lint and test actions * fix bad format
16 lines
397 B
Rust
16 lines
397 B
Rust
pub(crate) struct GandiAPI<'t> {
|
|
pub(crate) base_url: &'t str,
|
|
pub(crate) fqdn: &'t str,
|
|
pub(crate) rrset_name: &'t str,
|
|
pub(crate) rrset_type: &'t str,
|
|
}
|
|
|
|
impl<'t> GandiAPI<'t> {
|
|
pub(crate) fn url(&self) -> String {
|
|
format!(
|
|
"{}/v5/livedns/domains/{}/records/{}/{}",
|
|
self.base_url, self.fqdn, self.rrset_name, self.rrset_type
|
|
)
|
|
}
|
|
}
|