PersistenceApi

Trait PersistenceApi 

Source
pub trait PersistenceApi: Send + Sync {
    // Required methods
    fn delete_item_from_persistence_service<'service_id, 'itemname, 'starttime, 'endtime, 'life0, 'async_trait>(
        &'life0 self,
        service_id: &'service_id str,
        itemname: &'itemname str,
        starttime: &'starttime str,
        endtime: &'endtime str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error<DeleteItemFromPersistenceServiceError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'service_id: 'async_trait,
             'itemname: 'async_trait,
             'starttime: 'async_trait,
             'endtime: 'async_trait,
             'life0: 'async_trait;
    fn delete_persistence_service_configuration<'service_id, 'life0, 'async_trait>(
        &'life0 self,
        service_id: &'service_id str,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error<DeletePersistenceServiceConfigurationError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'service_id: 'async_trait,
             'life0: 'async_trait;
    fn get_item_data_from_persistence_service<'itemname, 'service_id, 'starttime, 'endtime, 'page, 'pagelength, 'boundary, 'item_state, 'life0, 'async_trait>(
        &'life0 self,
        itemname: &'itemname str,
        service_id: Option<&'service_id str>,
        starttime: Option<&'starttime str>,
        endtime: Option<&'endtime str>,
        page: Option<i32>,
        pagelength: Option<i32>,
        boundary: Option<bool>,
        item_state: Option<bool>,
    ) -> Pin<Box<dyn Future<Output = Result<ItemHistoryDto, Error<GetItemDataFromPersistenceServiceError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'itemname: 'async_trait,
             'service_id: 'async_trait,
             'starttime: 'async_trait,
             'endtime: 'async_trait,
             'page: 'async_trait,
             'pagelength: 'async_trait,
             'boundary: 'async_trait,
             'item_state: 'async_trait,
             'life0: 'async_trait;
    fn get_items_for_persistence_service<'service_id, 'life0, 'async_trait>(
        &'life0 self,
        service_id: Option<&'service_id str>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<PersistenceItemInfo>, Error<GetItemsForPersistenceServiceError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'service_id: 'async_trait,
             'life0: 'async_trait;
    fn get_persistence_service_configuration<'service_id, 'life0, 'async_trait>(
        &'life0 self,
        service_id: &'service_id str,
    ) -> Pin<Box<dyn Future<Output = Result<PersistenceServiceConfigurationDto, Error<GetPersistenceServiceConfigurationError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'service_id: 'async_trait,
             'life0: 'async_trait;
    fn get_persistence_services<'accept_language, 'life0, 'async_trait>(
        &'life0 self,
        accept_language: Option<&'accept_language str>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<PersistenceServiceDto>, Error<GetPersistenceServicesError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'accept_language: 'async_trait,
             'life0: 'async_trait;
    fn put_persistence_service_configuration<'service_id, 'persistence_service_configuration_dto, 'life0, 'async_trait>(
        &'life0 self,
        service_id: &'service_id str,
        persistence_service_configuration_dto: PersistenceServiceConfigurationDto,
    ) -> Pin<Box<dyn Future<Output = Result<PersistenceServiceConfigurationDto, Error<PutPersistenceServiceConfigurationError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'service_id: 'async_trait,
             'persistence_service_configuration_dto: 'async_trait,
             'life0: 'async_trait;
    fn store_item_data_in_persistence_service<'itemname, 'time, 'state, 'service_id, 'life0, 'async_trait>(
        &'life0 self,
        itemname: &'itemname str,
        time: &'time str,
        state: &'state str,
        service_id: Option<&'service_id str>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error<StoreItemDataInPersistenceServiceError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'itemname: 'async_trait,
             'time: 'async_trait,
             'state: 'async_trait,
             'service_id: 'async_trait,
             'life0: 'async_trait;
}
Available on crate feature persistence_api only.

Required Methods§

Source

fn delete_item_from_persistence_service<'service_id, 'itemname, 'starttime, 'endtime, 'life0, 'async_trait>( &'life0 self, service_id: &'service_id str, itemname: &'itemname str, starttime: &'starttime str, endtime: &'endtime str, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error<DeleteItemFromPersistenceServiceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'service_id: 'async_trait, 'itemname: 'async_trait, 'starttime: 'async_trait, 'endtime: 'async_trait, 'life0: 'async_trait,

DELETE /persistence/items/{itemname}

Source

fn delete_persistence_service_configuration<'service_id, 'life0, 'async_trait>( &'life0 self, service_id: &'service_id str, ) -> Pin<Box<dyn Future<Output = Result<(), Error<DeletePersistenceServiceConfigurationError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'service_id: 'async_trait, 'life0: 'async_trait,

DELETE /persistence/{serviceId}

Source

fn get_item_data_from_persistence_service<'itemname, 'service_id, 'starttime, 'endtime, 'page, 'pagelength, 'boundary, 'item_state, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, service_id: Option<&'service_id str>, starttime: Option<&'starttime str>, endtime: Option<&'endtime str>, page: Option<i32>, pagelength: Option<i32>, boundary: Option<bool>, item_state: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<ItemHistoryDto, Error<GetItemDataFromPersistenceServiceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'itemname: 'async_trait, 'service_id: 'async_trait, 'starttime: 'async_trait, 'endtime: 'async_trait, 'page: 'async_trait, 'pagelength: 'async_trait, 'boundary: 'async_trait, 'item_state: 'async_trait, 'life0: 'async_trait,

GET /persistence/items/{itemname}

Source

fn get_items_for_persistence_service<'service_id, 'life0, 'async_trait>( &'life0 self, service_id: Option<&'service_id str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<PersistenceItemInfo>, Error<GetItemsForPersistenceServiceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'service_id: 'async_trait, 'life0: 'async_trait,

GET /persistence/items

Source

fn get_persistence_service_configuration<'service_id, 'life0, 'async_trait>( &'life0 self, service_id: &'service_id str, ) -> Pin<Box<dyn Future<Output = Result<PersistenceServiceConfigurationDto, Error<GetPersistenceServiceConfigurationError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'service_id: 'async_trait, 'life0: 'async_trait,

GET /persistence/{serviceId}

Source

fn get_persistence_services<'accept_language, 'life0, 'async_trait>( &'life0 self, accept_language: Option<&'accept_language str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<PersistenceServiceDto>, Error<GetPersistenceServicesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'accept_language: 'async_trait, 'life0: 'async_trait,

GET /persistence

Source

fn put_persistence_service_configuration<'service_id, 'persistence_service_configuration_dto, 'life0, 'async_trait>( &'life0 self, service_id: &'service_id str, persistence_service_configuration_dto: PersistenceServiceConfigurationDto, ) -> Pin<Box<dyn Future<Output = Result<PersistenceServiceConfigurationDto, Error<PutPersistenceServiceConfigurationError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'service_id: 'async_trait, 'persistence_service_configuration_dto: 'async_trait, 'life0: 'async_trait,

PUT /persistence/{serviceId}

Source

fn store_item_data_in_persistence_service<'itemname, 'time, 'state, 'service_id, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, time: &'time str, state: &'state str, service_id: Option<&'service_id str>, ) -> Pin<Box<dyn Future<Output = Result<(), Error<StoreItemDataInPersistenceServiceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'itemname: 'async_trait, 'time: 'async_trait, 'state: 'async_trait, 'service_id: 'async_trait, 'life0: 'async_trait,

PUT /persistence/items/{itemname}

Implementors§