[−][src]Crate plist
Plist
A rusty plist parser.
Usage
Put this in your Cargo.toml
:
[dependencies]
plist = "0.5"
And put this in your crate root:
extern crate plist;
Examples
use plist::Value; let value = Value::from_file("tests/data/xml.plist").unwrap(); match value { Value::Array(_array) => (), _ => () }
extern crate plist; #[macro_use] extern crate serde_derive; #[derive(Deserialize)] #[serde(rename_all = "PascalCase")] struct Info { author: String, height: f32, } let info: Info = plist::from_file("tests/data/xml.plist").unwrap();
Unstable Features
Many features from previous versions are now hidden behind the
enable_unstable_features_that_may_break_with_minor_version_bumps
feature. These will break in
minor version releases after the 1.0 release. If you really really must use them you should
specify a tilde requirement e.g. plist = "~1.0.3"
in you Cargo.toml
so that the plist crate
is not automatically updated to version 1.1.
Re-exports
pub use dictionary::Dictionary; |
Modules
dictionary | A map of String to plist::Value. |
Structs
Date | A UTC timestamp used for serialization to and from the plist date type. |
Error | This type represents all possible errors that can occur when working with plist data. |
Integer | An integer that can be represented by either an |
Uid | A plist |
Enums
Value | Represents any plist value. |
Functions
from_file | Deserializes an instance of type |
from_reader | Deserializes an instance of type |
from_reader_xml | Deserializes an instance of type |
to_file_binary | Serializes the given data structure to a file as a binary encoded plist. |
to_file_xml | Serializes the given data structure to a file as an XML encoded plist. |
to_writer_binary | Serializes the given data structure to a byte stream as a binary encoded plist. |
to_writer_xml | Serializes the given data structure to a byte stream as an XML encoded plist. |