Struct pi_hole_api::api_types::Query
source · [−]pub struct Query {
pub timestring: NaiveDateTime,
pub query_type: QueryType,
pub domain: String,
pub client: String,
pub status: QueryStatus,
pub dnssec_status: DNSSECStatus,
pub reply_type: ReplyType,
pub response_time: Duration,
pub cname_domain: String,
pub regex_id: i32,
pub upstream_destination: String,
pub ede: String,
}Expand description
Query Struct
Fields
timestring: NaiveDateTimeTimestamp of query
query_type: QueryTypeType of query (A, AAAA, PTR, etc.)
domain: StringRequested domain name
client: StringRequesting client IP or hostname
status: QueryStatusStatus as String
dnssec_status: DNSSECStatusDNSSEC Status
reply_type: ReplyTypeReply Type
response_time: DurationResponse time
cname_domain: StringCNAME domain
regex_id: i32Regex ID
upstream_destination: StringUpstream Destination
ede: StringEDE
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Query
impl<'de> Deserialize<'de> for Query
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more