Trait hdk::prelude::LinkTypeFilterExt

source ·
pub trait LinkTypeFilterExt {
    // Required method
    fn try_into_filter(self) -> Result<LinkTypeFilter, WasmError>;
}
Expand description

An extension to obtain a link type filter.

Allows for single link types as well as the full range of link types to be passed in. To include all link types, i. e. not filter out any link type, the full range operator .. can be used: get_links(base, .., None).

Refer to the get_links function in this coordinator zome for several examples.

Required Methods§

Implementations on Foreign Types§

source§

impl LinkTypeFilterExt for RangeFull

source§

impl<T, E> LinkTypeFilterExt for &[T]
where &'a T: for<'a> TryInto<ScopedZomeType<LinkType>, Error = E>, WasmError: From<E>,

source§

impl<T, E> LinkTypeFilterExt for Vec<T>
where T: TryInto<ScopedZomeType<LinkType>, Error = E>, WasmError: From<E>,

source§

impl<T, E, const N: usize> LinkTypeFilterExt for &[T; N]
where &'a T: for<'a> TryInto<ScopedZomeType<LinkType>, Error = E>, WasmError: From<E>,

source§

impl<T, E, const N: usize> LinkTypeFilterExt for [T; N]
where T: TryInto<ScopedZomeType<LinkType>, Error = E>, WasmError: From<E>,

Implementors§