]>
git.proxmox.com Git - perlmod.git/blob - perlmod-test/src/pkg142.rs
1 use serde
::{Deserialize, Serialize}
;
3 #[derive(Debug, Deserialize, Serialize)]
4 pub struct Blubber(String
);
6 #[perlmod::package(name = "RSPM::Foo142", lib = "perlmod_test")]
8 use anyhow
::{bail, Error}
;
11 fn foo142(a
: u32, b
: u32) -> Result
<u32, Error
> {
13 bail
!("dying on magic number");
20 fn test(t
: Option
<String
>) -> Result
<(), Error
> {
21 println
!("test called with {:?}", t
);
26 fn teststr(t
: Option
<&str>) -> Result
<(), Error
> {
27 println
!("teststr called with {:?}", t
);
32 fn test_serde(value
: super::Blubber
) -> Result
<String
, Error
> {
33 println
!("got {:?}", value
);