pub struct Query {
pub kind: QueryKind,
pub match: Option<MatchAttrs>,
pub inner: Vec<Query>,
pub queries: Vec<Query>,
pub name: Option<String>,
pub body: Option<BodyMatch>,
pub relations: Option<Relations>,
pub resolve: Option<ResolveConfig>,
pub scope: Option<Scope>,
pub view: Option<ViewMode>,
pub limit: Option<usize>,
}Expand description
RyoQLクエリ
Fields§
§kind: QueryKind何を探すか
match: Option<MatchAttrs>どう絞り込むか
inner: Vec<Query>ネスト条件
queries: Vec<Query>Or/And用: サブクエリ
name: Option<String>Pattern用: パターン名
body: Option<BodyMatch>Body pattern matching (RyoPattern extension)
Match patterns within function/method bodies.
body:
contains:
- node: MethodCall
method: { name: "unwrap" }relations: Option<Relations>Relation conditions with logical grouping (RyoPattern extension)
Filter by graph relationships: any/all/none.
relations:
any:
- kind: Calls
target: { kind: Function, match: { name: "unwrap" } }
none:
- kind: DependsOn
target: { kind: Struct, match: { name: "Database" } }resolve: Option<ResolveConfig>LSP連携(オプション)
scope: Option<Scope>検索範囲
view: Option<ViewMode>出力形式
limit: Option<usize>件数制限
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Query
impl<'de> Deserialize<'de> for Query
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 Query
impl JsonSchema for Query
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 moreAuto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnsafeUnpin for Query
impl UnwindSafe for Query
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more