Struct trust_dns::rr::rdata::txt::TXT [] [src]

pub struct TXT {
    // some fields omitted
}

RFC 1035, DOMAIN NAMES - IMPLEMENTATION AND SPECIFICATION, November 1987

3.3.14. TXT RDATA format

    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
    /                   TXT-DATA                    /
    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+


TXT RRs are used to hold descriptive text.  The semantics of the text
depends on the domain where it is found.

Methods

impl TXT

fn new(txt_data: Vec<String>) -> TXT

Creates a new TXT record data.

Arguments

  • txt_data - the set of strings which make up the txt_data.

Return value

The new TXT record data.

fn get_txt_data(&self) -> &[String]

TXT-DATA        One or more <character-string>s.

Trait Implementations

Derived Implementations

impl Clone for TXT

fn clone(&self) -> TXT

1.0.0fn clone_from(&mut self, source: &Self)

impl Hash for TXT

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Eq for TXT

impl PartialEq for TXT

fn eq(&self, __arg_0: &TXT) -> bool

fn ne(&self, __arg_0: &TXT) -> bool

impl Debug for TXT

fn fmt(&self, __arg_0: &mut Formatter) -> Result