1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use crate::pixiv::helper_structs::illustration::Illustration; use serde::{Deserialize, Serialize}; /// PixivClient hides the actual illustration object behind the value "illust". /// This struct exists purely to bypass this indirection... #[derive(Serialize, Deserialize, Debug)] pub struct IllustrationProxy { pub illust: Illustration, } impl IllustrationProxy { pub fn into_inner(self) -> Illustration { self.illust } }