vcard 0.4.13

A pure Rust implementation of vCard based on RFC 6350.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub use super::super::validators::uuid::UUIDAllowAnyCase as UUID;
use super::*;

impl Value for UUID {
    fn fmt(&self, f: &mut Formatter) -> Result<(), fmt::Error> {
        f.write_str("urn:uuid:")?;

        if self.has_uppercase() {
            f.write_str(&self.get_full_uuid().to_lowercase())?;
        } else {
            f.write_str(self.get_full_uuid())?;
        }

        Ok(())
    }
}