fp_bindgen/serializable/
rmpv.rs1use super::Serializable;
2use crate::types::{CargoDependency, CustomType, Type, TypeIdent};
3use std::collections::{BTreeMap, BTreeSet};
4
5impl Serializable for rmpv::Value {
6 fn ident() -> TypeIdent {
7 TypeIdent::from("Value")
8 }
9
10 fn ty() -> Type {
11 Type::Custom(CustomType {
12 ident: Self::ident(),
13 rs_ty: "rmpv::Value".to_owned(),
14 rs_dependencies: BTreeMap::from([(
15 "rmpv",
16 CargoDependency {
17 version: Some("1.0"),
18 features: BTreeSet::from(["with-serde"]),
19 ..Default::default()
20 },
21 )]),
22 serde_attrs: Vec::new(),
23 ts_ty: "any".to_owned(),
24 ts_declaration: None,
25 })
26 }
27}