Struct resolve::message::Question [] [src]

pub struct Question {
    pub name: String,
    pub q_type: RecordType,
    pub q_class: Class,
}

Represents a question item.

Fields

name: String

Query name

q_type: RecordType

Query type

q_class: Class

Query class

Methods

impl Question
[src]

fn new(name: String, q_type: RecordType, q_class: Class) -> Question

Constructs a new Question.

Trait Implementations

impl PartialEq for Question
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

impl Eq for Question
[src]

impl Debug for Question
[src]

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

Formats the value using the given formatter.

impl Clone for Question
[src]

fn clone(&self) -> Question

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more