pub struct MediaText {
pub text: Text,
pub start_time: Option<Duration>,
pub end_time: Option<Duration>,
}
Expand description
Represents a “media:text” item from the RSS Media spec
Fields§
§text: Text
The text
start_time: Option<Duration>
The start time offset that the text starts being relevant to the media object.
end_time: Option<Duration>
The end time that the text is relevant. If this attribute is not provided, and a start time is used, it is expected that the end time is either the end of the clip or the start of the next media:text element.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MediaText
impl<'de> Deserialize<'de> for MediaText
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 Eq for MediaText
impl StructuralPartialEq for MediaText
Auto Trait Implementations§
impl Freeze for MediaText
impl RefUnwindSafe for MediaText
impl Send for MediaText
impl Sync for MediaText
impl Unpin for MediaText
impl UnwindSafe for MediaText
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