pub struct Header {
pub version: u8,
pub width: u32,
pub height: u32,
pub timestamp: Option<DateTime<Utc>>,
pub duration: Option<f64>,
pub idle_time_limit: Option<f64>,
pub command: Option<String>,
pub title: Option<String>,
pub env: Option<HashMap<String, String>>,
}
Fields§
§version: u8
asciicast
format version.
width: u32
Initial terminal width (number of columns).
height: u32
Initial terminal height (number of rows).
timestamp: Option<DateTime<Utc>>
Time of the beginning of the recording session.
duration: Option<f64>
Duration of the whole recording in seconds (when it’s known upfront).
idle_time_limit: Option<f64>
Idle time limit, as given via -i
option to asciinema rec
.
This should be used by an asciicast player to reduce all terminal inactivity
(delays between frames) to maximum of idle_time_limit
value.
command: Option<String>
Command that was recorded, as given via -c
option to asciinema rec
.
title: Option<String>
Title of the asciicast, as given via -t
option to asciinema rec
.
env: Option<HashMap<String, String>>
Map of captured environment variables.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Header
impl<'de> Deserialize<'de> for Header
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 StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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