graphics_style/styles/tex_image/
serder.rs

1use super::*;
2use image::EncodableLayout;
3use serde::{Deserialize, Serialize};
4use std::result::Result;
5
6impl Serialize for Image {
7    fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
8    where
9        S: Serializer,
10    {
11        serializer.serialize_bytes(self.shared.as_bytes())
12    }
13}
14
15impl<'de> Deserialize<'de> for Image {
16    fn deserialize<D>(_deserializer: D) -> Result<Self, D::Error>
17    where
18        D: Deserializer<'de>,
19    {
20        todo!()
21    }
22}