Weave documentation
Rust referencedbrowser

dbrowser · commands::window

Source declarations, signatures and documentation for commands::window.

Source: sigil/weave/tools/dbrowser/src-tauri/src/commands/window.rs. SHA-256: 11f0e5b66a5d097a6ef2b83d79ef08969c1b703bb28410eb490acec53e6d1702.

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::window::WindowThemeChoice

#[derive(Debug, Clone, Copy, Deserialize, Serialize, PartialEq, Eq)]
#[serde(rename_all = "lowercase")]
pub enum WindowThemeChoice {
    Light,
    Dark,
    /// Follow the OS system appearance.
    System,
}

Source line: 17.

commands::window::CaptureMode

#[derive(Debug, Clone, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct CaptureMode {
pub enabled: bool,
pub content_only: bool,
pub target_url: Option<String>,
pub theme: Option<WindowThemeChoice>
}

Source line: 26.

commands::window::CaptureWindowStartupPlan

#[derive(Debug, Clone, PartialEq)]
pub struct CaptureWindowStartupPlan {
pub unmaximize: bool,
pub width: f64,
pub height: f64
}

Source line: 34.

commands::window::CaptureObservationInput

#[derive(Debug, Clone, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct CaptureObservationInput {
pub url: String,
pub title: Option<String>,
pub source: String,
pub semantic_node_count: u64,
pub actionable_node_count: u64,
pub observed_at_ms: u64,
#[serde(default)]
pub fallback_signals: Vec<String>
}

Source line: 42.

commands::window::set_window_theme

#[tauri::command]
pub fn set_window_theme(app: AppHandle, theme: WindowThemeChoice) -> Result<(), String>;

Source line: 54.

commands::window::get_capture_mode

#[tauri::command]
pub fn get_capture_mode() -> CaptureMode;

Source line: 70.

commands::window::apply_capture_window_startup

pub fn apply_capture_window_startup(app: &AppHandle) -> Result<(), String>;

Source line: 96.

commands::window::write_capture_observation

#[tauri::command]
pub fn write_capture_observation(input: CaptureObservationInput) -> Result<String, String>;

Source line: 127.

On this page