Trait yaserde::YaSerialize [−][src]
pub trait YaSerialize: Sized { 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>
[src]
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
[src]
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
Implementations on Foreign Types
impl YaSerialize for bool
[src]
impl YaSerialize for bool
[src]fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
[src]
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
[src]
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl YaSerialize for char
[src]
impl YaSerialize for char
[src]fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
[src]
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
[src]
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl YaSerialize for usize
[src]
impl YaSerialize for usize
[src]fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
[src]
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
[src]
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl YaSerialize for u8
[src]
impl YaSerialize for u8
[src]fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
[src]
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
[src]
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl YaSerialize for u16
[src]
impl YaSerialize for u16
[src]fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
[src]
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
[src]
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl YaSerialize for u32
[src]
impl YaSerialize for u32
[src]fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
[src]
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
[src]
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl YaSerialize for u64
[src]
impl YaSerialize for u64
[src]fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
[src]
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
[src]
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl YaSerialize for isize
[src]
impl YaSerialize for isize
[src]fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
[src]
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
[src]
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl YaSerialize for i8
[src]
impl YaSerialize for i8
[src]fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
[src]
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
[src]
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl YaSerialize for i16
[src]
impl YaSerialize for i16
[src]fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
[src]
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
[src]
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl YaSerialize for i32
[src]
impl YaSerialize for i32
[src]fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
[src]
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
[src]
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl YaSerialize for i64
[src]
impl YaSerialize for i64
[src]fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
[src]
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
[src]
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl YaSerialize for f32
[src]
impl YaSerialize for f32
[src]fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
[src]
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
[src]
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl YaSerialize for f64
[src]
impl YaSerialize for f64
[src]fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
[src]
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
[src]
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>