Enum holochain_zome_types::link::LinkTypeFilter
source · [−]pub enum LinkTypeFilter {
Types(Vec<(ZomeId, Vec<LinkType, Global>), Global>),
Dependencies(Vec<ZomeId, Global>),
}
Expand description
Filter on a set of LinkType
s.
Variants
Types(Vec<(ZomeId, Vec<LinkType, Global>), Global>)
Return links that match any of these types.
Dependencies(Vec<ZomeId, Global>)
Return links that match any types defined in any of this zomes dependencies.
Implementations
sourceimpl LinkTypeFilter
impl LinkTypeFilter
pub fn zome_for<E>(
link_type: impl TryInto<ZomeId, Error = E>
) -> Result<LinkTypeFilter, E>
pub fn contains(&self, zome_id: &ZomeId, link_type: &LinkType) -> bool
pub fn single_type(zome_id: ZomeId, link_type: LinkType) -> LinkTypeFilter
pub fn single_dep(zome_id: ZomeId) -> LinkTypeFilter
Trait Implementations
sourceimpl Clone for LinkTypeFilter
impl Clone for LinkTypeFilter
sourcefn clone(&self) -> LinkTypeFilter
fn clone(&self) -> LinkTypeFilter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LinkTypeFilter
impl Debug for LinkTypeFilter
sourceimpl<'de> Deserialize<'de> for LinkTypeFilter
impl<'de> Deserialize<'de> for LinkTypeFilter
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<LinkTypeFilter, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<LinkTypeFilter, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Hash for LinkTypeFilter
impl Hash for LinkTypeFilter
sourceimpl PartialEq<LinkTypeFilter> for LinkTypeFilter
impl PartialEq<LinkTypeFilter> for LinkTypeFilter
sourcefn eq(&self, other: &LinkTypeFilter) -> bool
fn eq(&self, other: &LinkTypeFilter) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LinkTypeFilter) -> bool
fn ne(&self, other: &LinkTypeFilter) -> bool
This method tests for !=
.
sourceimpl Serialize for LinkTypeFilter
impl Serialize for LinkTypeFilter
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for LinkTypeFilter
impl StructuralEq for LinkTypeFilter
impl StructuralPartialEq for LinkTypeFilter
Auto Trait Implementations
impl RefUnwindSafe for LinkTypeFilter
impl Send for LinkTypeFilter
impl Sync for LinkTypeFilter
impl Unpin for LinkTypeFilter
impl UnwindSafe for LinkTypeFilter
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more