Struct m3u8_rs::playlist::Key
[−]
[src]
pub struct Key { pub method: String, pub uri: Option<String>, pub iv: Option<String>, pub keyformat: Option<String>, pub keyformatversions: Option<String>, }
Media Segments MAY be encrypted. The EXT-X-KEY tag specifies how to decrypt them. It applies to every Media Segment that appears between it and the next EXT-X-KEY tag in the Playlist file with the same KEYFORMAT attribute (or the end of the Playlist file). Two or more EXT-X-KEY tags with different KEYFORMAT attributes MAY apply to the same Media Segment if they ultimately produce the same decryption key.
Fields
method: String
uri: Option<String>
iv: Option<String>
keyformat: Option<String>
keyformatversions: Option<String>
Methods
impl Key
[src]
fn from_hashmap(attrs: HashMap<String, String>) -> Key
fn write_attributes_to<T: Write>(&self, w: &mut T) -> Result<()>
Trait Implementations
impl Debug for Key
[src]
impl Default for Key
[src]
impl Clone for Key
[src]
fn clone(&self) -> Key
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more