pub trait Serialize {
// Required method
fn serialize(&self) -> Result<GffStruct, &'static str>
where Self: Sized;
}Expand description
Serialize trait.
Implement for any structure that should be serializable to
GffStruct intermediary representation.
This trait can be automatically derived using
gff_derive::GffStruct, as long as all fields of
the struct implement crate::common::Serialize