pub enum Topic {
Unset,
OneOf(Vec<BytesM<32>, Global>),
This(BytesM<32>),
}Expand description
Topic filter expr
Variants§
Unset
Not filtered at all and any value matches
OneOf(Vec<BytesM<32>, Global>)
Match any of the hashes.
This(BytesM<32>)
Match only this hash.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Topic
impl<'de> Deserialize<'de> for Topic
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Topic, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Topic, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Topic> for Topic
impl PartialEq<Topic> for Topic
source§impl Serialize for Topic
impl Serialize for Topic
source§fn 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 Topic
impl StructuralEq for Topic
impl StructuralPartialEq for Topic
Auto Trait Implementations§
impl RefUnwindSafe for Topic
impl Send for Topic
impl Sync for Topic
impl Unpin for Topic
impl UnwindSafe for Topic
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.