pub struct PiHoleAPIConfig { /* 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

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