pub struct SidecarEntry {
pub scythe_fn: String,
pub scythe_module: String,
pub params: Vec<SidecarParam>,
pub return_lang_type: String,
pub is_async: bool,
pub command: QueryCommand,
}Expand description
One handler’s call info in one target language.
Fields§
§scythe_fn: StringFunction name emitted by scythe’s codegen backend in this language
(already canonicalised: e.g. get_user for Python from @name GetUser).
scythe_module: StringModule/package path the function lives in (e.g. queries,
queries.users). Per-language generators turn this into an import.
params: Vec<SidecarParam>Call arguments in the order scythe expects them, with sources tagged so
the generator knows whether to pull from request.path,
request.query, the body, or a header.
return_lang_type: StringResolved return type in this language (e.g. User in Python with a
dataclass, Promise<User | null> in TS).
is_async: boolWhether the scythe-generated function is async fn (Rust),
async def (Python), async/Promise (TS), etc.
command: QueryCommandDrives how the generator wraps the call result (single row, array, exec, affected-rows count, etc.).
Trait Implementations§
Source§impl Clone for SidecarEntry
impl Clone for SidecarEntry
Source§fn clone(&self) -> SidecarEntry
fn clone(&self) -> SidecarEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more