Skip to content

Instantly share code, notes, and snippets.

@freedomtowin
Created June 28, 2025 21:17
Show Gist options
  • Select an option

  • Save freedomtowin/661aeee1e5a8fc232798e1f54a4815fc to your computer and use it in GitHub Desktop.

Select an option

Save freedomtowin/661aeee1e5a8fc232798e1f54a4815fc to your computer and use it in GitHub Desktop.
Example of creating a Gist using Python
let default_fields = fields.iter().map(|f| {
let fname = &f.ident;
quote! { #fname: Default::default() }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment