We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to define const struct like Python DataClasses I have 2 files 1st is datatype.rs
const struct
Python DataClasses
use derive_new::new; #[derive(new)] struct NameSpaces { #[new(value = "\"/dog\".to_string()")] dog: String, #[new(value = "\"/cat\".to_string()")] cat: String, }
2nd is main.rx
mod datatype; #[tokio::main] async fn main() { let ns = datatype::NameSpaces::new(); println!("{}", ns.dog); std::future::pending::<()>().await; }
Issue is field `dog` of `NameSpaces` is private Does it possible to change it to global ??
field `dog` of `NameSpaces` is private
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want to define
const struct
likePython DataClasses
I have 2 files1st is datatype.rs
2nd is main.rx
Issue is
field `dog` of `NameSpaces` is private
Does it possible to change it to global ??
The text was updated successfully, but these errors were encountered: