pub struct QueryRecordData {
    pub flags: QueryRecordFlags,
    pub interface: Interface,
    pub rr_class: Class,
}
Expand description

Optional data when querying for a record; either use its default value or customize it like:

QueryRecordData {
    flags: QueryRecordFlags::LONG_LIVED_QUERY,
    ..Default::default()
};

Fields§

§flags: QueryRecordFlags

flags for query

§interface: Interface

interface to query records on

§rr_class: Class

class of the resource record (default: IN)

Trait Implementations§

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.