Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option<ImString> not deserializeable #22

Open
beckend opened this issue Sep 29, 2023 · 3 comments
Open

Option<ImString> not deserializeable #22

beckend opened this issue Sep 29, 2023 · 3 comments

Comments

@beckend
Copy link

beckend commented Sep 29, 2023

imstr = { version = "0.2.0", features = ["serde"] }
#[derive(Debug, Serialize, Deserialize)]
pub struct ResponseGeneric {
  pub message: Option<ImString>
}
 pub message: Option<ImString>,
     |                ^^^^^^^^^^^^^^^^ the trait `i18n::_::_serde::Deserialize<'_>` is not implemented for `ImString<Arc<std::string::String>>`
     |
     = help: the following other types implement trait `i18n::_::_serde::Deserialize<'de>`:
               <bool as i18n::_::_serde::Deserialize<'de>>
               <char as i18n::_::_serde::Deserialize<'de>>
               <isize as i18n::_::_serde::Deserialize<'de>>
               <i8 as i18n::_::_serde::Deserialize<'de>>
               <i16 as i18n::_::_serde::Deserialize<'de>>
               <i32 as i18n::_::_serde::Deserialize<'de>>
               <i64 as i18n::_::_serde::Deserialize<'de>>
               <i128 as i18n::_::_serde::Deserialize<'de>>
             and 443 others
     = note: required for `std::option::Option<ImString<Arc<std::string::String>>>` to implement `i18n::_::_serde::Deserialize<'_>`
note: required by a bound in `next_element`
@xfbs
Copy link
Owner

xfbs commented Oct 1, 2023

Looking into it!

@aminya
Copy link
Contributor

aminya commented Dec 29, 2023

I think #24 has fixed this.

@beckend
Copy link
Author

beckend commented Dec 29, 2023

If there is a release that can confirm this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants