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]

Implementations on Foreign Types

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

Implementors