Struct ape::Item
[−]
[src]
pub struct Item { pub key: String, pub value: ItemValue, }
Represents an APE Tag Item.
Fields
key: String
Item key for accessing special meta-information in an audio file.
APE tag item keys can have a length of 2 (including) up to 255 (including) characters in the range from 0x20 (Space) until 0x7E (Tilde).
Typical keys should have a length of 2 ... 16 characters using the following characters: Space (0x20), Slash (0x2F), Digits (0x30...0x39), Letters (0x41...0x5A, 0x61...0x7A).
Not allowed are the following keys: ID3, TAG, OggS and MP+.
Read the specification for more information.
value: ItemValue
Represents an APE Item Value
Methods
impl Item
[src]
fn from_binary<S: Into<String>>(key: S, value: Vec<u8>) -> Result<Item>
[src]
Creates an item with Binary value.
fn from_locator<S: Into<String>>(key: S, value: S) -> Result<Item>
[src]
Creates an item with Locator value.
fn from_text<S: Into<String>>(key: S, value: S) -> Result<Item>
[src]
Creates an item with Text value.
fn set_binary(&mut self, value: Vec<u8>)
[src]
Sets a new Binary value.
fn set_locator<S: Into<String>>(&mut self, value: S)
[src]
Sets a new Locator value.
fn set_text<S: Into<String>>(&mut self, value: S)
[src]
Sets a new Text value.
fn to_vec(&self) -> Result<Vec<u8>>
[src]
Creates a representation of the item suitable for writing to a file.