Skip to main content

lingxia_platform/traits/
document.rs

1use crate::error::PlatformError;
2
3#[derive(Debug, Clone)]
4pub struct OpenDocumentRequest {
5    pub file_path: String,
6    pub mime_type: Option<String>,
7    pub show_menu: Option<bool>,
8}
9
10pub trait DocumentInteraction: Send + Sync + 'static {
11    fn open_document(&self, request: OpenDocumentRequest) -> Result<(), PlatformError>;
12}