feat(os): add plugin (#346)

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
This commit is contained in:
Lucas Fernandes Nogueira
2023-05-08 09:39:54 -07:00
committed by GitHub
parent bcb42b7343
commit 61e7d6ede5
19 changed files with 809 additions and 154 deletions
+13
View File
@@ -0,0 +1,13 @@
use serde::{Serialize, Serializer};
#[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())
}
}