CheckedObject

Trait CheckedObject 

Source
pub trait CheckedObject {
    const PATH: &'static str;
    const OBJECT_TYPE_FOR_QUERY: &'static str;

    // Required methods
    fn name(&self) -> &str;
    fn is_ok(&self) -> bool;
    fn acknowledgement(&self) -> &Acknowledgement;
    fn is_handled(&self) -> bool;
    fn set_name(&mut self, name: String);
    fn set_acknowledgement(&mut self, ack: Acknowledgement);
    fn set_handled(&mut self, handled: bool);
}

Required Associated Constants§

Source

const PATH: &'static str

Source

const OBJECT_TYPE_FOR_QUERY: &'static str

Required Methods§

Source

fn name(&self) -> &str

Source

fn is_ok(&self) -> bool

Source

fn acknowledgement(&self) -> &Acknowledgement

Source

fn is_handled(&self) -> bool

Source

fn set_name(&mut self, name: String)

Source

fn set_acknowledgement(&mut self, ack: Acknowledgement)

Source

fn set_handled(&mut self, handled: bool)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl CheckedObject for Host

Source§

const PATH: &'static str = "/v1/objects/hosts"

Source§

const OBJECT_TYPE_FOR_QUERY: &'static str = "host"

Source§

impl CheckedObject for Service

Source§

const PATH: &'static str = "/v1/objects/services"

Source§

const OBJECT_TYPE_FOR_QUERY: &'static str = "service"