update
This commit is contained in:
parent
b174a40634
commit
af49ed4fdc
|
@ -12,7 +12,6 @@ declare module "*.svg";
|
||||||
|
|
||||||
declare interface Window {
|
declare interface Window {
|
||||||
__TAURI__?: {
|
__TAURI__?: {
|
||||||
convertFileSrc(url: string, protocol?: string): string;
|
|
||||||
writeText(text: string): Promise<void>;
|
writeText(text: string): Promise<void>;
|
||||||
invoke(command: string, payload?: Record<string, unknown>): Promise<any>;
|
invoke(command: string, payload?: Record<string, unknown>): Promise<any>;
|
||||||
dialog: {
|
dialog: {
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
|
use std::collections::HashMap;
|
||||||
use futures_util::{StreamExt};
|
use futures_util::{StreamExt};
|
||||||
use reqwest::Client;
|
use reqwest::Client;
|
||||||
use reqwest::header::{HeaderName, HeaderMap};
|
use reqwest::header::{HeaderName, HeaderMap};
|
||||||
|
@ -28,14 +29,6 @@ pub struct ChunkPayload {
|
||||||
chunk: bytes::Bytes,
|
chunk: bytes::Bytes,
|
||||||
}
|
}
|
||||||
|
|
||||||
use std::collections::HashMap;
|
|
||||||
|
|
||||||
#[derive(serde::Serialize)]
|
|
||||||
pub struct CustomResponse {
|
|
||||||
message: String,
|
|
||||||
other_val: usize,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
pub async fn stream_fetch(
|
pub async fn stream_fetch(
|
||||||
window: tauri::Window,
|
window: tauri::Window,
|
||||||
|
|
Loading…
Reference in New Issue