pub struct PatternQuery {
pub kind: Option<SymbolKind>,
pub match: Option<MatchAttrs>,
pub body: Option<BodyMatch>,
pub relations: Option<Relations>,
pub pattern: Option<CodePattern>,
}Expand description
Query for pattern matching (extends RyoQL Query concept)
Fields§
§kind: Option<SymbolKind>Symbol kind to match (Function, Struct, etc.)
match: Option<MatchAttrs>Attribute matching conditions
body: Option<BodyMatch>Body pattern matching
relations: Option<Relations>Relation conditions
pattern: Option<CodePattern>Direct code pattern (for CodePattern-only queries)
Implementations§
Source§impl PatternQuery
impl PatternQuery
Sourcepub fn kind(self, kind: SymbolKind) -> Self
pub fn kind(self, kind: SymbolKind) -> Self
Set symbol kind
Sourcepub fn with_match(self, attrs: MatchAttrs) -> Self
pub fn with_match(self, attrs: MatchAttrs) -> Self
Set match attributes
Sourcepub fn with_relations(self, relations: Relations) -> Self
pub fn with_relations(self, relations: Relations) -> Self
Set relations
Sourcepub fn with_pattern(self, pattern: CodePattern) -> Self
pub fn with_pattern(self, pattern: CodePattern) -> Self
Set direct pattern
Trait Implementations§
Source§impl Clone for PatternQuery
impl Clone for PatternQuery
Source§fn clone(&self) -> PatternQuery
fn clone(&self) -> PatternQuery
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 PatternQuery
impl Debug for PatternQuery
Source§impl Default for PatternQuery
impl Default for PatternQuery
Source§fn default() -> PatternQuery
fn default() -> PatternQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatternQuery
impl<'de> Deserialize<'de> for PatternQuery
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
Source§impl JsonSchema for PatternQuery
impl JsonSchema for PatternQuery
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for PatternQuery
impl PartialEq for PatternQuery
Source§fn eq(&self, other: &PatternQuery) -> bool
fn eq(&self, other: &PatternQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PatternQuery
impl Serialize for PatternQuery
impl StructuralPartialEq for PatternQuery
Auto Trait Implementations§
impl Freeze for PatternQuery
impl RefUnwindSafe for PatternQuery
impl Send for PatternQuery
impl Sync for PatternQuery
impl Unpin for PatternQuery
impl UnsafeUnpin for PatternQuery
impl UnwindSafe for PatternQuery
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