pub struct Txt {
pub name: Name,
pub data: TxtBytes,
}Expand description
A text resource record, containing arbitrary text data
Fields§
§name: NameThe name this record is at.
data: TxtBytesThe text record itself.
While this is generally UTF-8-valid, there is no specific requirement that it be, and thus is an arbitrary series of bytes here.
Trait Implementations§
Source§impl Ord for Txt
impl Ord for Txt
Source§impl PartialOrd for Txt
impl PartialOrd for Txt
impl Eq for Txt
impl StructuralPartialEq for Txt
Auto Trait Implementations§
impl Freeze for Txt
impl RefUnwindSafe for Txt
impl Send for Txt
impl Sync for Txt
impl Unpin for Txt
impl UnwindSafe for Txt
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<RR> Record for RRwhere
RR: StaticRecord,
impl<RR> Record for RRwhere
RR: StaticRecord,
Source§fn write_u16_len_prefixed_data(&self, out: &mut Vec<u8>)
fn write_u16_len_prefixed_data(&self, out: &mut Vec<u8>)
Writes the data of this record, prefixed by a u16 length, to the given
Vec.