Rust referencedbrowser
dbrowser · commands::search
Source declarations, signatures and documentation for commands::search.
Source: sigil/weave/tools/dbrowser/src-tauri/src/commands/search.rs. SHA-256: c1d9a858156779f997466a996b1381e187e6f03348c07545d4228885a3fcbf20.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
commands::search::WebSearchSource
#[derive(Debug, Clone, Serialize, PartialEq, Eq)]
pub struct WebSearchSource {
pub title: String,
pub url: String,
pub snippet: String
}Source line: 12.
commands::search::WebExtractedDocument
#[derive(Debug, Clone, Serialize, PartialEq, Eq)]
pub struct WebExtractedDocument {
pub title: String,
pub url: String,
pub markdown: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub error: Option<String>
}Source line: 19.
commands::search::WasiParserInput
#[derive(Debug, Clone, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct WasiParserInput {
pub url: String,
pub profile_id: Option<String>,
pub html: String,
pub max_chars: Option<u32>
}Source line: 29.
commands::search::WasiParserExtraction
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct WasiParserExtraction {
pub schema: String,
pub url: String,
pub profile_id: String,
pub allowed_fetch: bool,
pub title: String,
pub snapshot: serde_json::Value,
pub semantic: Vec<serde_json::Value>,
pub markdown: String,
pub source_score: f64,
pub content_hash: String,
pub chunks: Vec<serde_json::Value>,
#[serde(default)]
pub runner: String
}Source line: 38.
commands::search::search_web_sources
#[tauri::command]
pub async fn search_web_sources(
query: String,
limit: Option<usize>,
) -> Result<Vec<WebSearchSource>, String>;Source line: 55.
commands::search::extract_web_documents
#[tauri::command]
pub async fn extract_web_documents(
app: AppHandle,
urls: Vec<String>,
timeout_secs: Option<u64>,
) -> Result<Vec<WebExtractedDocument>, String>;Source line: 97.
commands::search::extract_html_with_wasi_parser
#[tauri::command]
pub async fn extract_html_with_wasi_parser(
app: AppHandle,
input: WasiParserInput,
) -> Result<WasiParserExtraction, String>;Source line: 132.