pub struct Recipe {
pub extras: Extras,
pub restrict_names: bool,
pub convert: Option<Target>,
pub quality: Option<Quality>,
}Expand description
Everything the caller chose, gathered so that a plan reads as one decision rather than as four positional booleans nobody can tell apart at the call site.
Fields§
§extras: ExtrasWhat travels beside the audio.
restrict_names: boolWhether the destination refuses the punctuation a music library is full
of — see names::restricts_names, which answers it by asking the
volume rather than by guessing.
convert: Option<Target>What to encode the audio into, or None to copy it unchanged.
quality: Option<Quality>How hard the encoder should try.
Trait Implementations§
impl Copy for Recipe
Auto Trait Implementations§
impl Freeze for Recipe
impl RefUnwindSafe for Recipe
impl Send for Recipe
impl Sync for Recipe
impl Unpin for Recipe
impl UnwindSafe for Recipe
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