pub struct PiHoleAPIConfigWithKey { /* private fields */ }
Expand description

Pi Hole API Struct

Implementations

Creates a new Pi Hole API instance. host must begin with the protocol e.g. http:// or https://

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Get the top domains and ads and the number of queries for each. Limit the number of items with count.

Get the top clients and the number of queries for each. Limit the number of items with count.

Get the top clients blocked and the number of queries for each. Limit the number of items with count.

Get the percentage of queries forwarded to each target.

Get the number of queries per type.

Get all DNS query data. Limit the number of items with count.

Enable the Pi-Hole.

Disable the Pi-Hole for seconds seconds.

Get statistics about the DNS cache.

Get hostname and IP for hosts

Get queries by client over time. Maps timestamp to the number of queries by clients. Order of clients in the Vector is the same as for get_client_names Read more

Get information about network clients.

Get the total number of queries received.

Add domains to a custom white/blacklist. Acceptable lists are: white, black, white_regex, black_regex, white_wild, black_wild, audit. Read more

Remove domain to a custom white/blacklist. Acceptable lists are: white, black, white_regex, black_regex, white_wild, black_wild, audit. Read more

Get a list of domains on a particular custom white/blacklist Acceptable lists are: white, black, white_regex, black_regex, white_wild, black_wild, audit. Read more

Get a list of custom DNS records

Add a custom DNS record

Delete a custom DNS record

Get a list of custom CNAME records

Add a custom CNAME record

Delete a custom CNAME record

Get max logage

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.

Get simple PiHole version

Get versions of core, FTL and web and if updates are available

Get statistics in a raw format (no number format)

Get statistics in a formatted style

Get statistics on the number of domains and ads for each 10 minute period