pub struct VideoSegment {
pub id: String,
pub index: usize,
pub start_time: f64,
pub end_time: f64,
pub duration: f64,
pub overlap: f64,
pub source_path: PathBuf,
pub output_path: Option<PathBuf>,
pub segment_type: SegmentType,
}Expand description
Video segment representation
Fields§
§id: StringSegment identifier
index: usizeSegment index
start_time: f64Start time in seconds
end_time: f64End time in seconds
duration: f64Duration
overlap: f64Overlap with next segment
source_path: PathBufSource file path
output_path: Option<PathBuf>Output file path
segment_type: SegmentTypeSegment type
Trait Implementations§
Source§impl Clone for VideoSegment
impl Clone for VideoSegment
Source§fn clone(&self) -> VideoSegment
fn clone(&self) -> VideoSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VideoSegment
impl RefUnwindSafe for VideoSegment
impl Send for VideoSegment
impl Sync for VideoSegment
impl Unpin for VideoSegment
impl UnsafeUnpin for VideoSegment
impl UnwindSafe for VideoSegment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request