Trait UnauthenticatedPiHoleAPI

Source
pub trait UnauthenticatedPiHoleAPI {
    // Required methods
    fn get_summary_raw(&self) -> Result<SummaryRaw, APIError>;
    fn get_summary(&self) -> Result<Summary, APIError>;
    fn get_over_time_data_10_mins(&self) -> Result<OverTimeData, APIError>;
    fn get_version(&self) -> Result<u32, APIError>;
    fn get_versions(&self) -> Result<Versions, APIError>;
}

Required Methods§

Source

fn get_summary_raw(&self) -> Result<SummaryRaw, APIError>

Get statistics in a raw format (no number format)

Source

fn get_summary(&self) -> Result<Summary, APIError>

Get statistics in a formatted style

Source

fn get_over_time_data_10_mins(&self) -> Result<OverTimeData, APIError>

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

Source

fn get_version(&self) -> Result<u32, APIError>

Get the Pi-Hole version.

Source

fn get_versions(&self) -> Result<Versions, APIError>

Get the detailed Pi-Hole versions for core, FTL and web interface.

Implementors§

Source§

impl<T> UnauthenticatedPiHoleAPI for T
where T: PiHoleAPIHost,