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
Extend the derive_for_type to recursively add the derives on all inner fields.
derive_for_type
For example, to derive Clone on MultiLocation one would need to do the following:
MultiLocation
derive_for_type(path = "xcm::v2::multilocation::MultiLocation", derive = "Clone"), derive_for_type(path = "xcm::v2::multilocation::Junctions", derive = "Clone"), derive_for_type(path = "xcm::v2::junction::Junction", derive = "Clone"), derive_for_type(path = "xcm::v2::NetworkId", derive = "Clone"), derive_for_type(path = "xcm::v2::BodyId", derive = "Clone"), derive_for_type(path = "xcm::v2::BodyPart", derive = "Clone"), derive_for_type( path = "bounded_collections::weak_bounded_vec::WeakBoundedVec", derive = "Clone" )
Ideally, developers could type just: derive_for_type(path = "xcm::v2::multilocation::MultiLocation", derive = "Clone", recursive),
derive_for_type(path = "xcm::v2::multilocation::MultiLocation", derive = "Clone", recursive),
The text was updated successfully, but these errors were encountered:
SkipCheckIfFeeless
scale-typegen
tadeohepperle
Successfully merging a pull request may close this issue.
Extend the
derive_for_type
to recursively add the derives on all inner fields.For example, to derive Clone on
MultiLocation
one would need to do the following:Ideally, developers could type just:
derive_for_type(path = "xcm::v2::multilocation::MultiLocation", derive = "Clone", recursive),
The text was updated successfully, but these errors were encountered: