Struct pi_hole_api::PiHoleAPIConfig
source · [−]pub struct PiHoleAPIConfig { /* private fields */ }
Expand description
Pi Hole API Struct
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PiHoleAPIConfig
impl Send for PiHoleAPIConfig
impl Sync for PiHoleAPIConfig
impl Unpin for PiHoleAPIConfig
impl UnwindSafe for PiHoleAPIConfig
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> UnauthenticatedPiHoleAPI for T where
T: PiHoleAPIHost,
impl<T> UnauthenticatedPiHoleAPI for T where
T: PiHoleAPIHost,
sourcefn get_version(&self) -> Result<u32, APIError>
fn get_version(&self) -> Result<u32, APIError>
Get simple PiHole version
sourcefn get_versions(&self) -> Result<Versions, APIError>
fn get_versions(&self) -> Result<Versions, APIError>
Get versions of core, FTL and web and if updates are available
sourcefn get_summary_raw(&self) -> Result<SummaryRaw, APIError>
fn get_summary_raw(&self) -> Result<SummaryRaw, APIError>
Get statistics in a raw format (no number format)
sourcefn get_summary(&self) -> Result<Summary, APIError>
fn get_summary(&self) -> Result<Summary, APIError>
Get statistics in a formatted style
sourcefn get_over_time_data_10_mins(&self) -> Result<OverTimeData, APIError>
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