mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-12 22:47:08 +02:00
21 lines
593 B
Rust
21 lines
593 B
Rust
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
use serde::{Serialize, Serializer};
|
|
|
|
/// All errors that can occur while running the os plugin.
|
|
///
|
|
/// This enum currently has no variants: none of the plugin's commands can fail.
|
|
#[derive(Debug, thiserror::Error)]
|
|
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())
|
|
}
|
|
}
|