Closed blackdllx closed 3 months ago
I meant take custom data type from 1c. What about enumerations? Can i import it from 1c to rust?
Unfortunately, no, you are limited by primitive types: https://its.1c.ru/db/metod8dev#content:3221:hdoc:_tvariant_enterprise
Yes, as long your types implement
From
traits for given parameter type. In other words, this should work:This works, because I am using
.into()
when converting from 1C types to rust, same the other way: https://github.com/Sebekerga/native_api_1c/blob/6e8dcccb305dab3869c51ed9e0d7a30be714f068/native_api_1c_macro/src/derive_addin/common_generators.rs#L18-L25I'm not 100% sure if it will work with out params, this is something that is not stable, ...yet