pub struct LongFormPolicy {
pub target_secs: f64,
pub min_secs: f64,
pub max_secs: f64,
pub search_secs: f64,
pub min_silence_secs: f64,
pub silence_rms_ratio: f64,
pub overlap_secs: f64,
pub max_overlap_fraction: f64,
}Expand description
Validated long-form chunking policy (not free-form env vars).
Fields§
§target_secs: f64Target window length in seconds (~210 product default).
min_secs: f64§max_secs: f64§search_secs: f64Search ± this many seconds around the target for silence.
min_silence_secs: f64§silence_rms_ratio: f64RMS threshold relative to peak (0..1) for “quiet”.
overlap_secs: f64§max_overlap_fraction: f64Implementations§
Trait Implementations§
Source§impl Clone for LongFormPolicy
impl Clone for LongFormPolicy
Source§fn clone(&self) -> LongFormPolicy
fn clone(&self) -> LongFormPolicy
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 moreSource§impl Debug for LongFormPolicy
impl Debug for LongFormPolicy
Source§impl Default for LongFormPolicy
impl Default for LongFormPolicy
Source§impl<'de> Deserialize<'de> for LongFormPolicy
impl<'de> Deserialize<'de> for LongFormPolicy
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
Source§impl PartialEq for LongFormPolicy
impl PartialEq for LongFormPolicy
Source§impl Serialize for LongFormPolicy
impl Serialize for LongFormPolicy
impl StructuralPartialEq for LongFormPolicy
Auto Trait Implementations§
impl Freeze for LongFormPolicy
impl RefUnwindSafe for LongFormPolicy
impl Send for LongFormPolicy
impl Sync for LongFormPolicy
impl Unpin for LongFormPolicy
impl UnsafeUnpin for LongFormPolicy
impl UnwindSafe for LongFormPolicy
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more