pub struct AstSearchParams {
pub kind: Option<String>,
pub is_async: Option<bool>,
pub visibility: Option<String>,
pub min_complexity: Option<u32>,
pub max_complexity: Option<u32>,
pub name_contains: Option<String>,
pub annotation: Option<String>,
pub limit: Option<usize>,
pub branch: Option<String>,
}Fields§
§kind: Option<String>NodeKind filter: “function”, “method”, “struct”, “trait”, “interface”, “enum”, “constant”, “type_alias”, “module”, etc. Omit for any kind.
is_async: Option<bool>When set, match only async (true) or only non-async (false) symbols.
visibility: Option<String>Visibility filter: “pub”, “pub_crate”, or “private”.
min_complexity: Option<u32>Inclusive lower bound on cyclomatic complexity. Symbols without a recorded complexity are excluded when this is set.
max_complexity: Option<u32>Inclusive upper bound on cyclomatic complexity.
name_contains: Option<String>Case-insensitive substring the symbol name must contain.
annotation: Option<String>Annotation/decorator name the symbol must carry (case-insensitive
substring): “Test” finds @Test, “route” finds @app.route,
“derive” finds #[derive(...)].
limit: Option<usize>Max results (default 30, capped at 200).
branch: Option<String>Trait Implementations§
Source§impl Debug for AstSearchParams
impl Debug for AstSearchParams
Source§impl<'de> Deserialize<'de> for AstSearchParams
impl<'de> Deserialize<'de> for AstSearchParams
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 AstSearchParams
impl JsonSchema for AstSearchParams
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 AstSearchParams
impl RefUnwindSafe for AstSearchParams
impl Send for AstSearchParams
impl Sync for AstSearchParams
impl Unpin for AstSearchParams
impl UnsafeUnpin for AstSearchParams
impl UnwindSafe for AstSearchParams
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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