Trait yaserde::YaSerialize
source · pub trait YaSerialize: Sized {
// Required methods
fn serialize<W: Write>(
&self,
writer: &mut Serializer<W>,
) -> Result<(), String>;
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace,
) -> Result<(Vec<OwnedAttribute>, Namespace), String>;
}
Expand description
A data structure that can be serialized into any data format supported by YaSerDe.
Required Methods§
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
fn serialize_attributes( &self, attributes: Vec<OwnedAttribute>, namespace: Namespace, ) -> Result<(Vec<OwnedAttribute>, Namespace), String>
Object Safety§
This trait is not object safe.