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§impl Debug for AnnotationQuery
impl Debug for AnnotationQuery
Source§impl Default for AnnotationQuery
impl Default for AnnotationQuery
Source§impl<'de> Deserialize<'de> for AnnotationQuery
impl<'de> Deserialize<'de> for AnnotationQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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
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