#[derive(StructIntoDefault)]
{
    // Attributes available to this derive:
    #[struct_into_default]
}
Expand description

Implement the Into trait on this struct with Default::default for missing fields.

struct.rs

use inter_struct::prelude::*;

pub struct Target {
    pub test: String,
}

#[derive(StructIntoDefault)]
#[struct_into_default(["crate::structs::Target"])]
pub struct Test {
    pub test: String,
}