Trait icinga2_api::types::query::QueryableObject

source ·
pub trait QueryableObject {
    type ListEndpoint;

    // Required method
    fn default_query_endpoint() -> Result<Self::ListEndpoint, Error>;
}
Expand description

represents a type of icinga object which can returned by a query

Required Associated Types§

source

type ListEndpoint

the type of the endpoint for listing all objects of this type

Required Methods§

source

fn default_query_endpoint() -> Result<Self::ListEndpoint, Error>

returns the endpoint constructed by calling the builder’s build method without calling any of the builder methods first

§Errors

this returns any errors the builder’s builder() call produces

Object Safety§

This trait is not object safe.

Implementors§

source§

impl QueryableObject for IcingaApiUser

source§

impl QueryableObject for IcingaCheckCommand

source§

impl QueryableObject for IcingaDependency

source§

impl QueryableObject for IcingaEndpoint

source§

impl QueryableObject for IcingaEventCommand

source§

impl QueryableObject for IcingaHost

§

type ListEndpoint = ListHosts<'static>

source§

impl QueryableObject for IcingaHostGroup

source§

impl QueryableObject for IcingaNotification

source§

impl QueryableObject for IcingaNotificationCommand

source§

impl QueryableObject for IcingaScheduledDowntime

source§

impl QueryableObject for IcingaService

source§

impl QueryableObject for IcingaServiceGroup

source§

impl QueryableObject for IcingaTimePeriod

source§

impl QueryableObject for IcingaUser

§

type ListEndpoint = ListUsers<'static>

source§

impl QueryableObject for IcingaUserGroup

source§

impl QueryableObject for IcingaZone

§

type ListEndpoint = ListZones<'static>

source§

impl QueryableObject for IcingaComment

source§

impl QueryableObject for IcingaDowntime