Derive Macro inter_struct::StructInto

source ·
#[derive(StructInto)]
{
    // Attributes available to this derive:
    #[struct_into]
}
Expand description

Implement the Into trait on this struct.

struct.rs

use inter_struct::prelude::*;

pub struct Target {
    pub test: String,
}

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