#[repr(C)]pub struct QueryParam {
pub name: *const i8,
pub description: *const i8,
pub param_type: ParamType,
pub required: bool,
pub default_value: *const u8,
pub default_value_len: usize,
pub allowed_values: *const u8,
pub allowed_values_len: usize,
pub nested_schema: *const QuerySchema,
}Expand description
Describes a single query parameter
Plugins use this to declare what parameters they accept, enabling LSP autocomplete and validation.
Fields§
§name: *const i8Parameter name (e.g., “symbol”, “device_type”, “table”)
description: *const i8Human-readable description
param_type: ParamTypeParameter type
required: boolIs this parameter required?
default_value: *const u8Default value (MessagePack encoded, null if no default)
default_value_len: usizeLength of default_value bytes
allowed_values: *const u8For enum-like params: allowed values (MessagePack array, null if any value allowed)
allowed_values_len: usizeLength of allowed_values bytes
nested_schema: *const QuerySchemaFor Object type: nested schema (pointer to QuerySchema, null otherwise)
Trait Implementations§
impl Sync for QueryParam
Auto Trait Implementations§
impl Freeze for QueryParam
impl RefUnwindSafe for QueryParam
impl !Send for QueryParam
impl Unpin for QueryParam
impl UnsafeUnpin for QueryParam
impl UnwindSafe for QueryParam
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> 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