pub trait LinksApi: Send + Sync {
// Required methods
fn get_item_link<'item_name, 'channel_uid, 'life0, 'async_trait>(
&'life0 self,
item_name: &'item_name str,
channel_uid: &'channel_uid str,
) -> Pin<Box<dyn Future<Output = Result<EnrichedItemChannelLinkDto, Error<GetItemLinkError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'item_name: 'async_trait,
'channel_uid: 'async_trait,
'life0: 'async_trait;
fn get_item_links<'channel_uid, 'item_name, 'life0, 'async_trait>(
&'life0 self,
channel_uid: Option<&'channel_uid str>,
item_name: Option<&'item_name str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<EnrichedItemChannelLinkDto>, Error<GetItemLinksError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'channel_uid: 'async_trait,
'item_name: 'async_trait,
'life0: 'async_trait;
fn get_orphan_links<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetOrphanLinksError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn link_item_to_channel<'item_name, 'channel_uid, 'item_channel_link_dto, 'life0, 'async_trait>(
&'life0 self,
item_name: &'item_name str,
channel_uid: &'channel_uid str,
item_channel_link_dto: Option<ItemChannelLinkDto>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<LinkItemToChannelError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'item_name: 'async_trait,
'channel_uid: 'async_trait,
'item_channel_link_dto: 'async_trait,
'life0: 'async_trait;
fn purge_database1<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PurgeDatabase1Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn remove_all_links_for_object<'object, 'life0, 'async_trait>(
&'life0 self,
object: &'object str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveAllLinksForObjectError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'object: 'async_trait,
'life0: 'async_trait;
fn unlink_item_from_channel<'item_name, 'channel_uid, 'life0, 'async_trait>(
&'life0 self,
item_name: &'item_name str,
channel_uid: &'channel_uid str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UnlinkItemFromChannelError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'item_name: 'async_trait,
'channel_uid: 'async_trait,
'life0: 'async_trait;
}Available on crate feature
links_api only.Required Methods§
Sourcefn get_item_link<'item_name, 'channel_uid, 'life0, 'async_trait>(
&'life0 self,
item_name: &'item_name str,
channel_uid: &'channel_uid str,
) -> Pin<Box<dyn Future<Output = Result<EnrichedItemChannelLinkDto, Error<GetItemLinkError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'item_name: 'async_trait,
'channel_uid: 'async_trait,
'life0: 'async_trait,
fn get_item_link<'item_name, 'channel_uid, 'life0, 'async_trait>(
&'life0 self,
item_name: &'item_name str,
channel_uid: &'channel_uid str,
) -> Pin<Box<dyn Future<Output = Result<EnrichedItemChannelLinkDto, Error<GetItemLinkError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'item_name: 'async_trait,
'channel_uid: 'async_trait,
'life0: 'async_trait,
GET /links/{itemName}/{channelUID}
Sourcefn get_item_links<'channel_uid, 'item_name, 'life0, 'async_trait>(
&'life0 self,
channel_uid: Option<&'channel_uid str>,
item_name: Option<&'item_name str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<EnrichedItemChannelLinkDto>, Error<GetItemLinksError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'channel_uid: 'async_trait,
'item_name: 'async_trait,
'life0: 'async_trait,
fn get_item_links<'channel_uid, 'item_name, 'life0, 'async_trait>(
&'life0 self,
channel_uid: Option<&'channel_uid str>,
item_name: Option<&'item_name str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<EnrichedItemChannelLinkDto>, Error<GetItemLinksError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'channel_uid: 'async_trait,
'item_name: 'async_trait,
'life0: 'async_trait,
GET /links
Sourcefn get_orphan_links<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetOrphanLinksError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_orphan_links<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetOrphanLinksError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /links/orphans
Sourcefn link_item_to_channel<'item_name, 'channel_uid, 'item_channel_link_dto, 'life0, 'async_trait>(
&'life0 self,
item_name: &'item_name str,
channel_uid: &'channel_uid str,
item_channel_link_dto: Option<ItemChannelLinkDto>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<LinkItemToChannelError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'item_name: 'async_trait,
'channel_uid: 'async_trait,
'item_channel_link_dto: 'async_trait,
'life0: 'async_trait,
fn link_item_to_channel<'item_name, 'channel_uid, 'item_channel_link_dto, 'life0, 'async_trait>(
&'life0 self,
item_name: &'item_name str,
channel_uid: &'channel_uid str,
item_channel_link_dto: Option<ItemChannelLinkDto>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<LinkItemToChannelError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'item_name: 'async_trait,
'channel_uid: 'async_trait,
'item_channel_link_dto: 'async_trait,
'life0: 'async_trait,
PUT /links/{itemName}/{channelUID}
Sourcefn purge_database1<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PurgeDatabase1Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn purge_database1<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PurgeDatabase1Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
POST /links/purge
Sourcefn remove_all_links_for_object<'object, 'life0, 'async_trait>(
&'life0 self,
object: &'object str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveAllLinksForObjectError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'object: 'async_trait,
'life0: 'async_trait,
fn remove_all_links_for_object<'object, 'life0, 'async_trait>(
&'life0 self,
object: &'object str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveAllLinksForObjectError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'object: 'async_trait,
'life0: 'async_trait,
DELETE /links/{object}
Sourcefn unlink_item_from_channel<'item_name, 'channel_uid, 'life0, 'async_trait>(
&'life0 self,
item_name: &'item_name str,
channel_uid: &'channel_uid str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UnlinkItemFromChannelError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'item_name: 'async_trait,
'channel_uid: 'async_trait,
'life0: 'async_trait,
fn unlink_item_from_channel<'item_name, 'channel_uid, 'life0, 'async_trait>(
&'life0 self,
item_name: &'item_name str,
channel_uid: &'channel_uid str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UnlinkItemFromChannelError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'item_name: 'async_trait,
'channel_uid: 'async_trait,
'life0: 'async_trait,
DELETE /links/{itemName}/{channelUID}