Download packages/tauri-plugins/plugins/haptics/src/models.rs from echodict/readest: direct link, hf CLI and curl.
- Browser
- Download file 946 Bytes
-
https://huggingface.co/datasets/echodict/readest/resolve/main/packages/tauri-plugins/plugins/haptics/src/models.rs
- Command line
-
hf download hf://datasets/echodict/readest/packages/tauri-plugins/plugins/haptics/src/models.rs
-
curl -L -o models.rs https://huggingface.co/datasets/echodict/readest/resolve/main/packages/tauri-plugins/plugins/haptics/src/models.rs
946 Bytes
| // Copyright 2019-2023 Tauri Programme within The Commons Conservancy | |
| // SPDX-License-Identifier: Apache-2.0 | |
| // SPDX-License-Identifier: MIT | |
| use serde::{Deserialize, Serialize}; | |
| /* | |
| #[derive(Debug, Clone, Default, Serialize, Deserialize)] | |
| #[cfg_attr(feature = "specta", derive(specta::Type))] | |
| #[serde(rename_all = "camelCase")] | |
| pub struct HapticsOptions { | |
| // TODO: support array to match web api | |
| pub duration: u32, | |
| } | |
| */ | |
| pub enum ImpactFeedbackStyle { | |
| Light, | |
| Medium, | |
| Heavy, | |
| Soft, | |
| Rigid, | |
| } | |
| pub enum NotificationFeedbackType { | |
| Success, | |
| Warning, | |
| Error, | |
| } | |