Closed yatesco closed 1 year ago
I think this is most likely due to std::ops::Add
being a remote trait that needs its definition to be duplicated together with #[delegatable_trait_remote]
.
For reference see the README here or this test: https://github.com/hobofan/ambassador/blob/a6703fed5e3c3672af0ec76e8767c78f23a0a218/ambassador/tests/run-pass/associated_types.rs
(might also been a something completely different; haven't used the crate in years myself 😬 )
Thanks @hobofan.
Hi there! I'm sure this is me not understanding something, but I have a new type struct
pub struct MyType(#[serde(serialize_with = "serialize_date_time")] pub NaiveDateTime);
that manually implements the inner type's traits. For example:I tried to replace it with the following:
but I get the following error:
First, is what I am trying to achieve possible, and secondly, what am I doing wrong :-).
Thanks!
P.S> issue asked https://users.rust-lang.org/t/newtype-and-traits-of-the-inner-type/92664/2