pub struct Media {
pub kind: MediaKind,
pub title: String,
pub path: String,
pub duration_ms: Option<f64>,
pub captions: Option<Vec<Caption>>,
pub frame_rate: Option<f64>,
}Expand description
A recording or photo a machine agent saved with the repository, at path under its owner’s
root. A video says how long it runs and what its captions say when, which players list as
chapters, and the frames a second the screen sent it (a frame comes when the page paints, so
a still page sends few). A chat’s copy carries it on its FILE part, as media.
Fields§
§kind: MediaKind§title: String§path: String§duration_ms: Option<f64>§captions: Option<Vec<Caption>>§frame_rate: Option<f64>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Media
impl<'de> Deserialize<'de> for Media
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 Media
Auto Trait Implementations§
impl Forget for Media
impl Freeze for Media
impl Move for Media
impl RefUnwindSafe for Media
impl Send for Media
impl Sync for Media
impl Unpin for Media
impl UnsafeUnpin for Media
impl UnwindSafe for Media
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