sylvia_iot_data::models

Trait Model

Source
pub trait Model: Send + Sync {
    // Required methods
    fn close<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn StdError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn application_dldata(&self) -> &dyn ApplicationDlDataModel;
    fn application_uldata(&self) -> &dyn ApplicationUlDataModel;
    fn coremgr_opdata(&self) -> &dyn CoremgrOpDataModel;
    fn network_dldata(&self) -> &dyn NetworkDlDataModel;
    fn network_uldata(&self) -> &dyn NetworkUlDataModel;
}
Expand description

The top level trait to get all models (tables/collections).

Required Methods§

Source

fn close<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn StdError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Close database connection.

Source

fn application_dldata(&self) -> &dyn ApplicationDlDataModel

To get the application downlink data model.

Source

fn application_uldata(&self) -> &dyn ApplicationUlDataModel

To get the application uplink data model.

Source

fn coremgr_opdata(&self) -> &dyn CoremgrOpDataModel

To get the coremgr operation data model.

Source

fn network_dldata(&self) -> &dyn NetworkDlDataModel

To get the network downlink data model.

Source

fn network_uldata(&self) -> &dyn NetworkUlDataModel

To get the network uplink data model.

Implementors§

Source§

impl Model for sylvia_iot_data::models::MongoDbModel

Source§

impl Model for sylvia_iot_data::models::SqliteModel