pub struct Shot {
pub index: i32,
pub start: Duration,
pub end: Duration,
pub duration: Duration,
pub score: f64,
}Expand description
A detected shot with start and end timestamps.
Fields§
§index: i32Zero-based shot index within the video.
start: DurationStart timestamp of the shot.
end: DurationEnd timestamp of the shot.
duration: DurationLength of the shot (end - start).
score: f64Scene-change score at this shot’s starting boundary (0-100); 0 for the first shot.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Shot
impl<'de> Deserialize<'de> for Shot
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
Auto Trait Implementations§
impl Freeze for Shot
impl RefUnwindSafe for Shot
impl Send for Shot
impl Sync for Shot
impl Unpin for Shot
impl UnsafeUnpin for Shot
impl UnwindSafe for Shot
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