#[non_exhaustive]pub struct SessionData {
pub data_id: String,
pub content: SessionDataContent,
pub language: Option<String>,
pub extra_attrs: Vec<(String, String)>,
}Expand description
#EXT-X-SESSION-DATA (RFC 8216bis §4.4.6.4) — arbitrary session data
carried in a MasterPlaylist (Multivariant Playlist only). A Playlist
MAY carry multiple entries, including repeats of the same DATA-ID
distinguished by LANGUAGE.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.data_id: StringDATA-ID — identifies this data value (REQUIRED).
content: SessionDataContentThe mutually-exclusive VALUE/URI payload.
language: Option<String>LANGUAGE — an RFC 5646 language tag, typically qualifying a
SessionDataContent::Value.
extra_attrs: Vec<(String, String)>Unmodeled attributes, retained so REQ- prefixed names can fire
RFC 8216bis §8 row 12. Sorted by name on parse (deterministic).
Trait Implementations§
Source§impl Clone for SessionData
impl Clone for SessionData
Source§fn clone(&self) -> SessionData
fn clone(&self) -> SessionData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionData
impl Debug for SessionData
impl Eq for SessionData
Source§impl PartialEq for SessionData
impl PartialEq for SessionData
impl StructuralPartialEq for SessionData
Auto Trait Implementations§
impl Freeze for SessionData
impl RefUnwindSafe for SessionData
impl Send for SessionData
impl Sync for SessionData
impl Unpin for SessionData
impl UnsafeUnpin for SessionData
impl UnwindSafe for SessionData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more