pub struct RrsetPatch { /* private fields */ }Expand description
A partial update to one RRset, for PATCH.
Fields left unset are omitted from the body, which is what tells the API to leave them
alone. Nothing here can serialize to null, because records: null is a 400 rather
than a no-op.
Implementations§
Source§impl RrsetPatch
impl RrsetPatch
Sourcepub fn records(
self,
records: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn records( self, records: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Replaces the records, leaving the TTL alone.
An empty list deletes the RRset.
Trait Implementations§
Source§impl Clone for RrsetPatch
impl Clone for RrsetPatch
Source§fn clone(&self) -> RrsetPatch
fn clone(&self) -> RrsetPatch
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 RrsetPatch
impl Debug for RrsetPatch
Source§impl Default for RrsetPatch
impl Default for RrsetPatch
Source§fn default() -> RrsetPatch
fn default() -> RrsetPatch
Returns the “default value” for a type. Read more
impl Eq for RrsetPatch
Source§impl PartialEq for RrsetPatch
impl PartialEq for RrsetPatch
Source§impl Serialize for RrsetPatch
impl Serialize for RrsetPatch
impl StructuralPartialEq for RrsetPatch
Auto Trait Implementations§
impl Freeze for RrsetPatch
impl RefUnwindSafe for RrsetPatch
impl Send for RrsetPatch
impl Sync for RrsetPatch
impl Unpin for RrsetPatch
impl UnsafeUnpin for RrsetPatch
impl UnwindSafe for RrsetPatch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.