#[non_exhaustive]pub struct Snapshot<E = ()> {
pub transport: Transport,
pub renditions: BTreeMap<String, Rendition>,
pub ext: E,
}Expand description
One cumulative viewer report, keyed by the catalog’s rendition IDs.
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.transport: TransportThe reporting connection’s transport measurements.
renditions: BTreeMap<String, Rendition>Per-rendition counters, including entries with all counters reset to zero.
ext: EApplication-defined root sections flattened beside the media report.
Trait Implementations§
Source§impl<'de, E> Deserialize<'de> for Snapshot<E>where
E: DeserializeOwned + Default,
impl<'de, E> Deserialize<'de> for Snapshot<E>where
E: DeserializeOwned + Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<E: PartialEq> StructuralPartialEq for Snapshot<E>
Auto Trait Implementations§
impl<E> Freeze for Snapshot<E>where
E: Freeze,
impl<E> RefUnwindSafe for Snapshot<E>where
E: RefUnwindSafe,
impl<E> Send for Snapshot<E>where
E: Send,
impl<E> Sync for Snapshot<E>where
E: Sync,
impl<E> Unpin for Snapshot<E>where
E: Unpin,
impl<E> UnsafeUnpin for Snapshot<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for Snapshot<E>where
E: UnwindSafe,
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