pub struct GetPeaksOptions {
pub start_seconds: Option<f64>,
pub end_seconds: Option<f64>,
pub target_peaks: Option<usize>,
pub channels: Option<usize>,
}Expand description
Query options for reading peaks from a binary peaks file.
Fields§
§start_seconds: Option<f64>Start timestamp in seconds (inclusive). If omitted, reads from file start.
end_seconds: Option<f64>End timestamp in seconds (exclusive). If omitted, reads to file end.
target_peaks: Option<usize>Maximum number of peak windows to return per channel.
When used with both start_seconds and end_seconds, returns exactly this
many windows aligned to the requested time range, zero-padding windows that
fall outside available audio. Otherwise, this acts as a maximum output size.
channels: Option<usize>Maximum number of channels to return.
Channels are selected from index 0 upward.
Trait Implementations§
Source§impl Clone for GetPeaksOptions
impl Clone for GetPeaksOptions
Source§fn clone(&self) -> GetPeaksOptions
fn clone(&self) -> GetPeaksOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GetPeaksOptions
impl Debug for GetPeaksOptions
Source§impl Default for GetPeaksOptions
impl Default for GetPeaksOptions
Source§fn default() -> GetPeaksOptions
fn default() -> GetPeaksOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetPeaksOptions
impl RefUnwindSafe for GetPeaksOptions
impl Send for GetPeaksOptions
impl Sync for GetPeaksOptions
impl Unpin for GetPeaksOptions
impl UnsafeUnpin for GetPeaksOptions
impl UnwindSafe for GetPeaksOptions
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