pub enum AnnotationTagPredicate {
Exact {
tag: AnnotationTag,
},
SymbolName {
name: String,
},
FilePath {
path: String,
},
FilePrefix {
path: String,
},
LinesOverlap {
target: AnnotationSourceReference,
},
Property {
key: String,
comparison: AnnotationComparison,
value: Option<AnnotationValue>,
},
}Variants§
Exact
Fields
§
tag: AnnotationTagSymbolName
FilePath
FilePrefix
LinesOverlap
Fields
§
target: AnnotationSourceReferenceProperty
Implementations§
Source§impl AnnotationTagPredicate
impl AnnotationTagPredicate
pub fn validate(&self) -> Result<(), CollaborationCodecError>
Trait Implementations§
Source§impl Clone for AnnotationTagPredicate
impl Clone for AnnotationTagPredicate
Source§fn clone(&self) -> AnnotationTagPredicate
fn clone(&self) -> AnnotationTagPredicate
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 AnnotationTagPredicate
impl Debug for AnnotationTagPredicate
Source§impl<'de> Deserialize<'de> for AnnotationTagPredicate
impl<'de> Deserialize<'de> for AnnotationTagPredicate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AnnotationTagPredicate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AnnotationTagPredicate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AnnotationTagPredicate
Source§impl PartialEq for AnnotationTagPredicate
impl PartialEq for AnnotationTagPredicate
Source§impl Serialize for AnnotationTagPredicate
impl Serialize for AnnotationTagPredicate
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 AnnotationTagPredicate
Auto Trait Implementations§
impl Freeze for AnnotationTagPredicate
impl RefUnwindSafe for AnnotationTagPredicate
impl Send for AnnotationTagPredicate
impl Sync for AnnotationTagPredicate
impl Unpin for AnnotationTagPredicate
impl UnsafeUnpin for AnnotationTagPredicate
impl UnwindSafe for AnnotationTagPredicate
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