vcard 0.4.13

A pure Rust implementation of vCard based on RFC 6350.
Documentation
use std::fmt::{self, Display, Formatter};

use validators::{Validated, ValidatedWrapper};

use super::*;

#[derive(Clone, Debug, PartialEq, Eq, Hash)]
pub struct End;

impl Property for End {
    fn fmt(&self, f: &mut Formatter) -> Result<(), fmt::Error> {
        f.write_str("END:VCARD\r\n")?;

        Ok(())
    }
}

impl Display for End {
    fn fmt(&self, f: &mut Formatter) -> Result<(), fmt::Error> {
        Property::fmt(self, f)
    }
}

impl Validated for End {}

impl ValidatedWrapper for End {
    type Error = &'static str;

    fn from_string(_from_string_input: String) -> Result<Self, Self::Error> {
        unimplemented!();
    }

    fn from_str(_from_str_input: &str) -> Result<Self, Self::Error> {
        unimplemented!();
    }
}