MockApiClient

Struct MockApiClient 

Source
pub struct MockApiClient {
Show 30 fields pub actions_api_mock: MockActionsApi, pub addons_api_mock: MockAddonsApi, pub audio_api_mock: MockAudioApi, pub auth_api_mock: MockAuthApi, pub channel_types_api_mock: MockChannelTypesApi, pub config_descriptions_api_mock: MockConfigDescriptionsApi, pub discovery_api_mock: MockDiscoveryApi, pub events_api_mock: MockEventsApi, pub habpanel_api_mock: MockHabpanelApi, pub iconsets_api_mock: MockIconsetsApi, pub inbox_api_mock: MockInboxApi, pub items_api_mock: MockItemsApi, pub links_api_mock: MockLinksApi, pub logging_api_mock: MockLoggingApi, pub module_types_api_mock: MockModuleTypesApi, pub persistence_api_mock: MockPersistenceApi, pub profile_types_api_mock: MockProfileTypesApi, pub root_api_mock: MockRootApi, pub rules_api_mock: MockRulesApi, pub services_api_mock: MockServicesApi, pub sitemaps_api_mock: MockSitemapsApi, pub systeminfo_api_mock: MockSysteminfoApi, pub tags_api_mock: MockTagsApi, pub templates_api_mock: MockTemplatesApi, pub thing_types_api_mock: MockThingTypesApi, pub things_api_mock: MockThingsApi, pub transformations_api_mock: MockTransformationsApi, pub ui_api_mock: MockUiApi, pub uuid_api_mock: MockUuidApi, pub voice_api_mock: MockVoiceApi,
}
Available on crate feature mockall only.

Fields§

§actions_api_mock: MockActionsApi§addons_api_mock: MockAddonsApi§audio_api_mock: MockAudioApi§auth_api_mock: MockAuthApi§channel_types_api_mock: MockChannelTypesApi§config_descriptions_api_mock: MockConfigDescriptionsApi§discovery_api_mock: MockDiscoveryApi§events_api_mock: MockEventsApi§habpanel_api_mock: MockHabpanelApi§iconsets_api_mock: MockIconsetsApi§inbox_api_mock: MockInboxApi§items_api_mock: MockItemsApi§links_api_mock: MockLinksApi§logging_api_mock: MockLoggingApi§module_types_api_mock: MockModuleTypesApi§persistence_api_mock: MockPersistenceApi§profile_types_api_mock: MockProfileTypesApi§root_api_mock: MockRootApi§rules_api_mock: MockRulesApi§services_api_mock: MockServicesApi§sitemaps_api_mock: MockSitemapsApi§systeminfo_api_mock: MockSysteminfoApi§tags_api_mock: MockTagsApi§templates_api_mock: MockTemplatesApi§thing_types_api_mock: MockThingTypesApi§things_api_mock: MockThingsApi§transformations_api_mock: MockTransformationsApi§ui_api_mock: MockUiApi§uuid_api_mock: MockUuidApi§voice_api_mock: MockVoiceApi

Implementations§

Source§

impl MockApiClient

Source

pub fn new() -> Self

Trait Implementations§

Source§

impl Api for MockApiClient

Source§

fn actions_api(&self) -> &dyn ActionsApi

Available on crate feature actions_api only.
Source§

fn addons_api(&self) -> &dyn AddonsApi

Available on crate feature addons_api only.
Source§

fn audio_api(&self) -> &dyn AudioApi

Available on crate feature audio_api only.
Source§

fn auth_api(&self) -> &dyn AuthApi

Available on crate feature auth_api only.
Source§

fn channel_types_api(&self) -> &dyn ChannelTypesApi

Available on crate feature channel_types_api only.
Source§

fn config_descriptions_api(&self) -> &dyn ConfigDescriptionsApi

Available on crate feature config_descriptions_api only.
Source§

fn discovery_api(&self) -> &dyn DiscoveryApi

Available on crate feature discovery_api only.
Source§

fn events_api(&self) -> &dyn EventsApi

Available on crate feature events_api only.
Source§

fn habpanel_api(&self) -> &dyn HabpanelApi

Available on crate feature habpanel_api only.
Source§

fn iconsets_api(&self) -> &dyn IconsetsApi

Available on crate feature iconsets_api only.
Source§

fn inbox_api(&self) -> &dyn InboxApi

Available on crate feature inbox_api only.
Source§

fn items_api(&self) -> &dyn ItemsApi

Available on crate feature items_api only.
Available on crate feature links_api only.
Source§

fn logging_api(&self) -> &dyn LoggingApi

Available on crate feature logging_api only.
Source§

fn module_types_api(&self) -> &dyn ModuleTypesApi

Available on crate feature module_types_api only.
Source§

fn persistence_api(&self) -> &dyn PersistenceApi

Available on crate feature persistence_api only.
Source§

fn profile_types_api(&self) -> &dyn ProfileTypesApi

Available on crate feature profile_types_api only.
Source§

fn root_api(&self) -> &dyn RootApi

Available on crate feature root_api only.
Source§

fn rules_api(&self) -> &dyn RulesApi

Available on crate feature rules_api only.
Source§

fn services_api(&self) -> &dyn ServicesApi

Available on crate feature services_api only.
Source§

fn sitemaps_api(&self) -> &dyn SitemapsApi

Available on crate feature sitemaps_api only.
Source§

fn systeminfo_api(&self) -> &dyn SysteminfoApi

Available on crate feature systeminfo_api only.
Source§

fn tags_api(&self) -> &dyn TagsApi

Available on crate feature tags_api only.
Source§

fn templates_api(&self) -> &dyn TemplatesApi

Available on crate feature templates_api only.
Source§

fn thing_types_api(&self) -> &dyn ThingTypesApi

Available on crate feature thing_types_api only.
Source§

fn things_api(&self) -> &dyn ThingsApi

Available on crate feature things_api only.
Source§

fn transformations_api(&self) -> &dyn TransformationsApi

Available on crate feature transformations_api only.
Source§

fn ui_api(&self) -> &dyn UiApi

Available on crate feature ui_api only.
Source§

fn uuid_api(&self) -> &dyn UuidApi

Available on crate feature uuid_api only.
Source§

fn voice_api(&self) -> &dyn VoiceApi

Available on crate feature voice_api only.

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> Any for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Source§

fn type_name(&self) -> &'static str

Source§

impl<T> AnySync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

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.

Source§

impl<T> Instrument for T

Source§

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

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

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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

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

Source§

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>,

Source§

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.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> ErasedDestructor for T
where T: 'static,