Weave documentation
Rust referencedbrowser

dbrowser · commands::inference

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

Source: sigil/weave/tools/dbrowser/src-tauri/src/commands/inference.rs. SHA-256: ccd2e9e93079393a9090ddb074fec62362b62cf582f8da00674325da0968520e.

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::inference::ChutesLoopbackInput

#[derive(Debug, Deserialize)]
pub struct ChutesLoopbackInput {
pub auth_base_url: String
}

Source line: 26.

commands::inference::ChutesLoopbackStarted

#[derive(Debug, Serialize)]
pub struct ChutesLoopbackStarted {
pub redirect_uri: String,
pub already_running: bool
}

Source line: 31.

commands::inference::OpenExternalUrlInput

#[derive(Debug, Deserialize)]
pub struct OpenExternalUrlInput {
pub url: String
}

Source line: 37.

commands::inference::OpenExternalUrlResult

#[derive(Debug, Serialize)]
pub struct OpenExternalUrlResult {
pub url: String
}

Source line: 42.

commands::inference::ChutesOAuthToken

#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq)]
pub struct ChutesOAuthToken {
pub access_token: String,
#[serde(default)]
pub refresh_token: String,
#[serde(default)]
pub expires_in: u64,
#[serde(default = "default_token_type")]
pub token_type: String,
#[serde(default)]
pub scope: String
}

Source line: 47.

commands::inference::chutes_open_external_url

#[tauri::command]
pub fn chutes_open_external_url(
    input: OpenExternalUrlInput,
) -> Result<OpenExternalUrlResult, String>;

Source line: 69.

commands::inference::chutes_take_loopback_token

#[tauri::command]
pub fn chutes_take_loopback_token() -> Result<Option<ChutesOAuthToken>, String>;

Source line: 78.

commands::inference::chutes_start_loopback_callback

#[tauri::command]
pub async fn chutes_start_loopback_callback(
    input: ChutesLoopbackInput,
) -> Result<ChutesLoopbackStarted, String>;

Source line: 86.

On this page