pub struct AnnotationQuery {
pub all: Vec<AnnotationTagPredicate>,
pub any: Vec<AnnotationTagPredicate>,
pub none: Vec<AnnotationTagPredicate>,
}Fields§
§all: Vec<AnnotationTagPredicate>§any: Vec<AnnotationTagPredicate>§none: Vec<AnnotationTagPredicate>Implementations§
Source§impl AnnotationQuery
impl AnnotationQuery
pub fn validate(&self) -> Result<(), CollaborationCodecError>
Sourcepub fn matches(&self, tags: &[AnnotationTag]) -> bool
pub fn matches(&self, tags: &[AnnotationTag]) -> bool
Matching is only defined for validated queries and validated signed tags.
Trait Implementations§
Source§impl Clone for AnnotationQuery
impl Clone for AnnotationQuery
Source§fn clone(&self) -> AnnotationQuery
fn clone(&self) -> AnnotationQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnnotationQuery
impl Debug for AnnotationQuery
Source§impl Default for AnnotationQuery
impl Default for AnnotationQuery
Source§fn default() -> AnnotationQuery
fn default() -> AnnotationQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnnotationQuery
impl<'de> Deserialize<'de> for AnnotationQuery
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AnnotationQuery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AnnotationQuery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AnnotationQuery
Source§impl PartialEq for AnnotationQuery
impl PartialEq for AnnotationQuery
Source§impl Serialize for AnnotationQuery
impl Serialize for AnnotationQuery
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 StructuralPartialEq for AnnotationQuery
Auto Trait Implementations§
impl Freeze for AnnotationQuery
impl RefUnwindSafe for AnnotationQuery
impl Send for AnnotationQuery
impl Sync for AnnotationQuery
impl Unpin for AnnotationQuery
impl UnsafeUnpin for AnnotationQuery
impl UnwindSafe for AnnotationQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more