pub struct GetDnsPolicy {
pub site_id: String,
pub id: String,
}Expand description
Fetch a specific DNS policy by ID within a site. Endpoint: GET /v1/sites/{siteId}/dns/policies/{id}
Fields§
§site_id: String§id: StringImplementations§
Trait Implementations§
Source§impl Clone for GetDnsPolicy
impl Clone for GetDnsPolicy
Source§fn clone(&self) -> GetDnsPolicy
fn clone(&self) -> GetDnsPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GetDnsPolicy
impl Debug for GetDnsPolicy
Source§impl Endpoint for GetDnsPolicy
impl Endpoint for GetDnsPolicy
const PATH: &'static str = "sites/{site_id}/dns/policies/{id}"
const METHOD: HttpMethod = HttpMethod::Get
type Response = SiteResponse<DnsPolicy>
Source§fn build_path(&self) -> String
fn build_path(&self) -> String
Build the actual path for this endpoint.
Override this method when the endpoint has dynamic path parameters.
Auto Trait Implementations§
impl Freeze for GetDnsPolicy
impl RefUnwindSafe for GetDnsPolicy
impl Send for GetDnsPolicy
impl Sync for GetDnsPolicy
impl Unpin for GetDnsPolicy
impl UnsafeUnpin for GetDnsPolicy
impl UnwindSafe for GetDnsPolicy
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