pub struct ZabbixApiV6Client { /* private fields */ }
Expand description

Zabbix API Client implementation for Zabbix API v6

Implementations§

source§

impl ZabbixApiV6Client

source

pub fn new(client: Client, api_endpoint_url: &str) -> ZabbixApiV6Client

Trait Implementations§

source§

impl Clone for ZabbixApiV6Client

source§

fn clone(&self) -> ZabbixApiV6Client

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ZabbixApiV6Client

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl ZabbixApiClient for ZabbixApiV6Client

source§

fn get_api_info(&self) -> Result<String, ZabbixApiError>

§get_api_info

Implements ZabbixApiClient::get_api_info.

See the trait documentation for more details.

source§

fn get_auth_session( &self, login: &str, token: &str ) -> Result<String, ZabbixApiError>

§get_auth_session

Implements ZabbixApiClient::get_auth_session.

See the trait documentation for more details.

source§

fn raw_api_call<P: Serialize, R: DeserializeOwned>( &self, session: &str, method: &str, params: &P ) -> Result<ZabbixApiResponse<R>, ZabbixApiError>

§raw_api_call

Implements ZabbixApiClient::raw_api_call.

See the trait documentation for more details.

source§

fn get_host_groups<P: Serialize>( &self, session: &str, params: &P ) -> Result<Vec<ZabbixHostGroup>, ZabbixApiError>

§get_host_groups

Implements ZabbixApiClient::get_host_groups.

See the trait documentation for more details.

source§

fn get_hosts<P: Serialize>( &self, session: &str, params: &P ) -> Result<Vec<ZabbixHost>, ZabbixApiError>

§get_hosts

Implements ZabbixApiClient::get_hosts.

See the trait documentation for more details.

source§

fn get_items<P: Serialize>( &self, session: &str, params: &P ) -> Result<Vec<ZabbixItem>, ZabbixApiError>

§get_items

Implements ZabbixApiClient::get_items.

See the trait documentation for more details.

source§

fn get_triggers<P: Serialize>( &self, session: &str, params: &P ) -> Result<Vec<ZabbixTrigger>, ZabbixApiError>

§get_triggers

Implements ZabbixApiClient::get_triggers.

See the trait documentation for more details.

source§

fn get_webscenarios<P: Serialize>( &self, session: &str, params: &P ) -> Result<Vec<ZabbixWebScenario>, ZabbixApiError>

§get_webscenarios

Implements ZabbixApiClient::get_webscenarios.

See the trait documentation for more details.

source§

fn create_host_group( &self, session: &str, request: &CreateHostGroupRequest ) -> Result<u32, ZabbixApiError>

§create_host_group

Implements ZabbixApiClient::create_host_group.

See the trait documentation for more details.

source§

fn create_host( &self, session: &str, request: &CreateHostRequest ) -> Result<u32, ZabbixApiError>

§create_host

Implements ZabbixApiClient::create_host.

See the trait documentation for more details.

source§

fn create_item( &self, session: &str, request: &CreateItemRequest ) -> Result<u32, ZabbixApiError>

§create_item

Implements ZabbixApiClient::create_item.

See the trait documentation for more details.

source§

fn create_trigger( &self, session: &str, request: &CreateTriggerRequest ) -> Result<u32, ZabbixApiError>

§create_trigger

Implements ZabbixApiClient::create_trigger.

See the trait documentation for more details.

source§

fn create_webscenario( &self, session: &str, request: &CreateWebScenarioRequest ) -> Result<u32, ZabbixApiError>

§create_webscenario

Implements ZabbixApiClient::create_webscenario.

See the trait documentation for more details.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more