imstr icon indicating copy to clipboard operation
imstr copied to clipboard

Option<ImString> not deserializeable

Open beckend opened this issue 2 years ago • 3 comments

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`

beckend avatar Sep 29 '23 18:09 beckend

Looking into it!

xfbs avatar Oct 01 '23 10:10 xfbs

I think #24 has fixed this.

aminya avatar Dec 29 '23 12:12 aminya

If there is a release that can confirm this.

beckend avatar Dec 29 '23 12:12 beckend