8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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 have a tree like structure: Warehouse <- Zone<'p>.
Warehouse
Zone<'p>
#[derive(Debug, Clone, Dummy)] pub struct WarehouseTopology { pub label: String, } #[derive(Debug, Clone, Dummy)] pub struct ZoneTopology<'p> { pub _whs: &'p WarehouseTopology, pub label: String, }
Why can't I derive Dummy for it?
Dummy
The text was updated successfully, but these errors were encountered:
Well, I was able to split the struct onto a fakeable part and non-fakeable (keeping a reference).
#[derive(Serialize)] pub struct ZoneTopology { _whs: &'p Parent, #[serde(flatten)] zone: Zone, } #[derive(Serialize, Dummy)] pub struct Zone { label: String, }
But macros could return something that accepts an argument — the reference to Parent.
Parent
let whs = Warehouse { .. }; let zone = faker.fake(&whs);
Sorry, something went wrong.
No branches or pull requests
I have a tree like structure:
Warehouse
<-Zone<'p>
.Why can't I derive
Dummy
for it?The text was updated successfully, but these errors were encountered: