fp_bindgen/serializable/
serde_bytes.rs1use super::Serializable;
2use crate::types::{CargoDependency, CustomType, Type, TypeIdent};
3use std::collections::BTreeMap;
4
5impl Serializable for serde_bytes::ByteBuf {
6 fn ident() -> TypeIdent {
7 TypeIdent::from("ByteBuf")
8 }
9
10 fn ty() -> Type {
11 Type::Custom(CustomType {
12 ident: Self::ident(),
13 rs_ty: "serde_bytes::ByteBuf".to_owned(),
14 rs_dependencies: BTreeMap::from([(
15 "serde_bytes",
16 CargoDependency::with_version("0.11"),
17 )]),
18 serde_attrs: vec![],
19 ts_ty: "ArrayBuffer".to_owned(),
20 ts_declaration: None,
21 })
22 }
23}