pub struct UpdateDnsPolicy {
pub site_id: String,
pub id: String,
pub request: DnsPolicyRequest,
}Expand description
Update an existing DNS policy within a site. Endpoint: PUT /v1/sites/{siteId}/dns/policies/{id}
Fields§
§site_id: String§id: String§request: DnsPolicyRequestImplementations§
Trait Implementations§
Source§impl Clone for UpdateDnsPolicy
impl Clone for UpdateDnsPolicy
Source§fn clone(&self) -> UpdateDnsPolicy
fn clone(&self) -> UpdateDnsPolicy
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 UpdateDnsPolicy
impl Debug for UpdateDnsPolicy
Source§impl Endpoint for UpdateDnsPolicy
impl Endpoint for UpdateDnsPolicy
const PATH: &'static str = "sites/{site_id}/dns/policies/{id}"
const METHOD: HttpMethod = HttpMethod::Put
type Response = MutationResponse<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 UpdateDnsPolicy
impl RefUnwindSafe for UpdateDnsPolicy
impl Send for UpdateDnsPolicy
impl Sync for UpdateDnsPolicy
impl Unpin for UpdateDnsPolicy
impl UnsafeUnpin for UpdateDnsPolicy
impl UnwindSafe for UpdateDnsPolicy
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