You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I have the following rust code inside a crate:
use{
relay_rpc::domain::ProjectId,
serde::{Deserialize,Serialize},};#[derive(Debug,Clone,PartialEq,Eq,Serialize,Deserialize)]#[cfg_attr(feature = "uniffi", derive(uniffi_macros::Record))]#[cfg_attr(feature = "frb", frb)]#[serde(rename_all = "camelCase")]pubstructStatusResponsePending{pubcreated_at:u64,/// Polling interval in ms for the clientpubcheck_in:u64,}#[derive(Debug,Clone,PartialEq,Eq,Serialize,Deserialize)]#[cfg_attr(feature = "uniffi", derive(uniffi_macros::Record))]#[cfg_attr(feature = "frb", frb)]#[serde(rename_all = "camelCase")]pubstructStatusResponseCompleted{pubcreated_at:u64,}#[derive(Debug,Clone,PartialEq,Eq,Serialize,Deserialize)]#[cfg_attr(feature = "uniffi", derive(uniffi_macros::Record))]#[cfg_attr(feature = "frb", frb)]#[serde(rename_all = "camelCase")]pubstructStatusResponseError{pubcreated_at:u64,puberror:String,}#[derive(Debug,Clone,PartialEq,Eq,Serialize,Deserialize)]#[cfg_attr(feature = "uniffi", derive(uniffi_macros::Enum))]#[cfg_attr(feature = "frb", frb)]#[serde(rename_all = "UPPERCASE", tag = "status")]pubenumStatusResponse{Pending(StatusResponsePending),Completed(StatusResponseCompleted),Error(StatusResponseError),}
And I'm depending from this crate to create a fluter package, but not matter what I do, when I generate the code I get these enums translated to Rust opaque trypes
Hello! I have the following rust code inside a crate:
And I'm depending from this crate to create a fluter package, but not matter what I do, when I generate the code I get these enums translated to Rust opaque trypes
Can you please advise on how to overcome this?
The text was updated successfully, but these errors were encountered: