#[non_exhaustive]pub struct ResourceRecord {
pub name: String,
pub rrdata: String,
pub type: RecordType,
/* private fields */
}Expand description
A DNS resource record.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRelative name of the object affected by this record. Only applicable for
CNAME records. Example: ‘www’.
rrdata: StringData for this record. Values vary by record type, as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).
type: RecordTypeResource record type. Example: AAAA.
Implementations§
Trait Implementations§
Source§impl Clone for ResourceRecord
impl Clone for ResourceRecord
Source§fn clone(&self) -> ResourceRecord
fn clone(&self) -> ResourceRecord
Returns a duplicate of the value. Read more
1.0.0 · 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 ResourceRecord
impl Debug for ResourceRecord
Source§impl Default for ResourceRecord
impl Default for ResourceRecord
Source§fn default() -> ResourceRecord
fn default() -> ResourceRecord
Returns the “default value” for a type. Read more
Source§impl Message for ResourceRecord
impl Message for ResourceRecord
Source§impl PartialEq for ResourceRecord
impl PartialEq for ResourceRecord
impl StructuralPartialEq for ResourceRecord
Auto Trait Implementations§
impl Freeze for ResourceRecord
impl RefUnwindSafe for ResourceRecord
impl Send for ResourceRecord
impl Sync for ResourceRecord
impl Unpin for ResourceRecord
impl UnwindSafe for ResourceRecord
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