ItemsApi

Trait ItemsApi 

Source
pub trait ItemsApi: Send + Sync {
Show 17 methods // Required methods fn add_member_to_group_item<'item_name, 'member_item_name, 'life0, 'async_trait>( &'life0 self, item_name: &'item_name str, member_item_name: &'member_item_name str, ) -> Pin<Box<dyn Future<Output = Result<(), Error<AddMemberToGroupItemError>>> + Send + 'async_trait>> where Self: 'async_trait, 'item_name: 'async_trait, 'member_item_name: 'async_trait, 'life0: 'async_trait; fn add_metadata_to_item<'itemname, 'namespace, 'metadata_dto, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, namespace: &'namespace str, metadata_dto: MetadataDto, ) -> Pin<Box<dyn Future<Output = Result<(), Error<AddMetadataToItemError>>> + Send + 'async_trait>> where Self: 'async_trait, 'itemname: 'async_trait, 'namespace: 'async_trait, 'metadata_dto: 'async_trait, 'life0: 'async_trait; fn add_or_update_item_in_registry<'itemname, 'group_item_dto, 'accept_language, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, group_item_dto: GroupItemDto, accept_language: Option<&'accept_language str>, ) -> Pin<Box<dyn Future<Output = Result<EnrichedItemDto, Error<AddOrUpdateItemInRegistryError>>> + Send + 'async_trait>> where Self: 'async_trait, 'itemname: 'async_trait, 'group_item_dto: 'async_trait, 'accept_language: 'async_trait, 'life0: 'async_trait; fn add_or_update_items_in_registry<'group_item_dto, 'life0, 'async_trait>( &'life0 self, group_item_dto: Vec<GroupItemDto>, ) -> Pin<Box<dyn Future<Output = Result<String, Error<AddOrUpdateItemsInRegistryError>>> + Send + 'async_trait>> where Self: 'async_trait, 'group_item_dto: 'async_trait, 'life0: 'async_trait; fn add_tag_to_item<'itemname, 'tag, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, tag: &'tag str, ) -> Pin<Box<dyn Future<Output = Result<(), Error<AddTagToItemError>>> + Send + 'async_trait>> where Self: 'async_trait, 'itemname: 'async_trait, 'tag: 'async_trait, 'life0: 'async_trait; fn get_item_by_name<'itemname, 'accept_language, 'metadata, 'recursive, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, accept_language: Option<&'accept_language str>, metadata: Option<&'metadata str>, recursive: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<EnrichedItemDto, Error<GetItemByNameError>>> + Send + 'async_trait>> where Self: 'async_trait, 'itemname: 'async_trait, 'accept_language: 'async_trait, 'metadata: 'async_trait, 'recursive: 'async_trait, 'life0: 'async_trait; fn get_item_namespaces<'itemname, 'accept_language, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, accept_language: Option<&'accept_language str>, ) -> Pin<Box<dyn Future<Output = Result<String, Error<GetItemNamespacesError>>> + Send + 'async_trait>> where Self: 'async_trait, 'itemname: 'async_trait, 'accept_language: 'async_trait, 'life0: 'async_trait; fn get_item_state1<'itemname, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, ) -> Pin<Box<dyn Future<Output = Result<String, Error<GetItemState1Error>>> + Send + 'async_trait>> where Self: 'async_trait, 'itemname: 'async_trait, 'life0: 'async_trait; fn get_items<'accept_language, 'r_type, 'tags, 'metadata, 'recursive, 'fields, 'static_data_only, 'life0, 'async_trait>( &'life0 self, accept_language: Option<&'accept_language str>, type: Option<&'r_type str>, tags: Option<&'tags str>, metadata: Option<&'metadata str>, recursive: Option<bool>, fields: Option<&'fields str>, static_data_only: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<Vec<EnrichedItemDto>, Error<GetItemsError>>> + Send + 'async_trait>> where Self: 'async_trait, 'accept_language: 'async_trait, 'r_type: 'async_trait, 'tags: 'async_trait, 'metadata: 'async_trait, 'recursive: 'async_trait, 'fields: 'async_trait, 'static_data_only: 'async_trait, 'life0: 'async_trait; fn get_semantic_item<'item_name, 'semantic_class, 'accept_language, 'life0, 'async_trait>( &'life0 self, item_name: &'item_name str, semantic_class: &'semantic_class str, accept_language: Option<&'accept_language str>, ) -> Pin<Box<dyn Future<Output = Result<(), Error<GetSemanticItemError>>> + Send + 'async_trait>> where Self: 'async_trait, 'item_name: 'async_trait, 'semantic_class: 'async_trait, 'accept_language: 'async_trait, 'life0: 'async_trait; fn purge_database<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<(), Error<PurgeDatabaseError>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn remove_item_from_registry<'itemname, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, ) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveItemFromRegistryError>>> + Send + 'async_trait>> where Self: 'async_trait, 'itemname: 'async_trait, 'life0: 'async_trait; fn remove_member_from_group_item<'item_name, 'member_item_name, 'life0, 'async_trait>( &'life0 self, item_name: &'item_name str, member_item_name: &'member_item_name str, ) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveMemberFromGroupItemError>>> + Send + 'async_trait>> where Self: 'async_trait, 'item_name: 'async_trait, 'member_item_name: 'async_trait, 'life0: 'async_trait; fn remove_metadata_from_item<'itemname, 'namespace, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, namespace: &'namespace str, ) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveMetadataFromItemError>>> + Send + 'async_trait>> where Self: 'async_trait, 'itemname: 'async_trait, 'namespace: 'async_trait, 'life0: 'async_trait; fn remove_tag_from_item<'itemname, 'tag, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, tag: &'tag str, ) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveTagFromItemError>>> + Send + 'async_trait>> where Self: 'async_trait, 'itemname: 'async_trait, 'tag: 'async_trait, 'life0: 'async_trait; fn send_item_command<'itemname, 'body, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, body: &'body str, ) -> Pin<Box<dyn Future<Output = Result<(), Error<SendItemCommandError>>> + Send + 'async_trait>> where Self: 'async_trait, 'itemname: 'async_trait, 'body: 'async_trait, 'life0: 'async_trait; fn update_item_state<'itemname, 'body, 'accept_language, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, body: &'body str, accept_language: Option<&'accept_language str>, ) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdateItemStateError>>> + Send + 'async_trait>> where Self: 'async_trait, 'itemname: 'async_trait, 'body: 'async_trait, 'accept_language: 'async_trait, 'life0: 'async_trait;
}
Available on crate feature items_api only.

Required Methods§

Source

fn add_member_to_group_item<'item_name, 'member_item_name, 'life0, 'async_trait>( &'life0 self, item_name: &'item_name str, member_item_name: &'member_item_name str, ) -> Pin<Box<dyn Future<Output = Result<(), Error<AddMemberToGroupItemError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'item_name: 'async_trait, 'member_item_name: 'async_trait, 'life0: 'async_trait,

PUT /items/{itemName}/members/{memberItemName}

Source

fn add_metadata_to_item<'itemname, 'namespace, 'metadata_dto, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, namespace: &'namespace str, metadata_dto: MetadataDto, ) -> Pin<Box<dyn Future<Output = Result<(), Error<AddMetadataToItemError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'itemname: 'async_trait, 'namespace: 'async_trait, 'metadata_dto: 'async_trait, 'life0: 'async_trait,

PUT /items/{itemname}/metadata/{namespace}

Source

fn add_or_update_item_in_registry<'itemname, 'group_item_dto, 'accept_language, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, group_item_dto: GroupItemDto, accept_language: Option<&'accept_language str>, ) -> Pin<Box<dyn Future<Output = Result<EnrichedItemDto, Error<AddOrUpdateItemInRegistryError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'itemname: 'async_trait, 'group_item_dto: 'async_trait, 'accept_language: 'async_trait, 'life0: 'async_trait,

PUT /items/{itemname}

Source

fn add_or_update_items_in_registry<'group_item_dto, 'life0, 'async_trait>( &'life0 self, group_item_dto: Vec<GroupItemDto>, ) -> Pin<Box<dyn Future<Output = Result<String, Error<AddOrUpdateItemsInRegistryError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'group_item_dto: 'async_trait, 'life0: 'async_trait,

PUT /items

Source

fn add_tag_to_item<'itemname, 'tag, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, tag: &'tag str, ) -> Pin<Box<dyn Future<Output = Result<(), Error<AddTagToItemError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'itemname: 'async_trait, 'tag: 'async_trait, 'life0: 'async_trait,

PUT /items/{itemname}/tags/{tag}

Source

fn get_item_by_name<'itemname, 'accept_language, 'metadata, 'recursive, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, accept_language: Option<&'accept_language str>, metadata: Option<&'metadata str>, recursive: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<EnrichedItemDto, Error<GetItemByNameError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'itemname: 'async_trait, 'accept_language: 'async_trait, 'metadata: 'async_trait, 'recursive: 'async_trait, 'life0: 'async_trait,

GET /items/{itemname}

Source

fn get_item_namespaces<'itemname, 'accept_language, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, accept_language: Option<&'accept_language str>, ) -> Pin<Box<dyn Future<Output = Result<String, Error<GetItemNamespacesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'itemname: 'async_trait, 'accept_language: 'async_trait, 'life0: 'async_trait,

GET /items/{itemname}/metadata/namespaces

Source

fn get_item_state1<'itemname, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, ) -> Pin<Box<dyn Future<Output = Result<String, Error<GetItemState1Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'itemname: 'async_trait, 'life0: 'async_trait,

GET /items/{itemname}/state

Source

fn get_items<'accept_language, 'r_type, 'tags, 'metadata, 'recursive, 'fields, 'static_data_only, 'life0, 'async_trait>( &'life0 self, accept_language: Option<&'accept_language str>, type: Option<&'r_type str>, tags: Option<&'tags str>, metadata: Option<&'metadata str>, recursive: Option<bool>, fields: Option<&'fields str>, static_data_only: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<Vec<EnrichedItemDto>, Error<GetItemsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'accept_language: 'async_trait, 'r_type: 'async_trait, 'tags: 'async_trait, 'metadata: 'async_trait, 'recursive: 'async_trait, 'fields: 'async_trait, 'static_data_only: 'async_trait, 'life0: 'async_trait,

GET /items

Source

fn get_semantic_item<'item_name, 'semantic_class, 'accept_language, 'life0, 'async_trait>( &'life0 self, item_name: &'item_name str, semantic_class: &'semantic_class str, accept_language: Option<&'accept_language str>, ) -> Pin<Box<dyn Future<Output = Result<(), Error<GetSemanticItemError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'item_name: 'async_trait, 'semantic_class: 'async_trait, 'accept_language: 'async_trait, 'life0: 'async_trait,

GET /items/{itemName}/semantic/{semanticClass}

Source

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

POST /items/metadata/purge

Source

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

DELETE /items/{itemname}

Source

fn remove_member_from_group_item<'item_name, 'member_item_name, 'life0, 'async_trait>( &'life0 self, item_name: &'item_name str, member_item_name: &'member_item_name str, ) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveMemberFromGroupItemError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'item_name: 'async_trait, 'member_item_name: 'async_trait, 'life0: 'async_trait,

DELETE /items/{itemName}/members/{memberItemName}

Source

fn remove_metadata_from_item<'itemname, 'namespace, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, namespace: &'namespace str, ) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveMetadataFromItemError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'itemname: 'async_trait, 'namespace: 'async_trait, 'life0: 'async_trait,

DELETE /items/{itemname}/metadata/{namespace}

Source

fn remove_tag_from_item<'itemname, 'tag, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, tag: &'tag str, ) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveTagFromItemError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'itemname: 'async_trait, 'tag: 'async_trait, 'life0: 'async_trait,

DELETE /items/{itemname}/tags/{tag}

Source

fn send_item_command<'itemname, 'body, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, body: &'body str, ) -> Pin<Box<dyn Future<Output = Result<(), Error<SendItemCommandError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'itemname: 'async_trait, 'body: 'async_trait, 'life0: 'async_trait,

POST /items/{itemname}

Source

fn update_item_state<'itemname, 'body, 'accept_language, 'life0, 'async_trait>( &'life0 self, itemname: &'itemname str, body: &'body str, accept_language: Option<&'accept_language str>, ) -> Pin<Box<dyn Future<Output = Result<(), Error<UpdateItemStateError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'itemname: 'async_trait, 'body: 'async_trait, 'accept_language: 'async_trait, 'life0: 'async_trait,

PUT /items/{itemname}/state

Implementors§