Download packages/tauri-plugins/plugins/os/src/error.rs from echodict/readest: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/datasets/echodict/readest/resolve/main/packages/tauri-plugins/plugins/os/src/error.rs
- Command line
-
hf download hf://datasets/echodict/readest/packages/tauri-plugins/plugins/os/src/error.rs
-
curl -L -o error.rs https://huggingface.co/datasets/echodict/readest/resolve/main/packages/tauri-plugins/plugins/os/src/error.rs
449 Bytes
| // Copyright 2019-2023 Tauri Programme within The Commons Conservancy | |
| // SPDX-License-Identifier: Apache-2.0 | |
| // SPDX-License-Identifier: MIT | |
| use serde::{Serialize, Serializer}; | |
| pub enum Error {} | |
| impl Serialize for Error { | |
| fn serialize<S>(&self, serializer: S) -> std::result::Result<S::Ok, S::Error> | |
| where | |
| S: Serializer, | |
| { | |
| serializer.serialize_str(self.to_string().as_ref()) | |
| } | |
| } | |