ItemsApiClient

Struct ItemsApiClient 

Source
pub struct ItemsApiClient { /* private fields */ }
Available on crate feature items_api only.

Implementations§

Source§

impl ItemsApiClient

Source

pub fn new(configuration: Arc<Configuration>) -> Self

Trait Implementations§

Source§

impl ItemsApi for ItemsApiClient

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

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,