pub enum StemFormat {
Wav,
Mp3,
}Expand description
Container format for a downloaded stem.
Stems are stored RAW in their native container and are never transcoded, so
unlike AudioFormat there is no lossless-from-lossy render: WAV comes
straight from Suno’s free convert_wav endpoint and MP3 straight from the
public CDN. FLAC is deliberately unrepresentable — a stem is never
re-encoded to FLAC, even when the song’s own format is FLAC.
Variants§
Wav
Lossless WAV via the free convert_wav render, stored as delivered.
Mp3
The public CDN MP3, stored as delivered.
Implementations§
Trait Implementations§
Source§impl Clone for StemFormat
impl Clone for StemFormat
Source§fn clone(&self) -> StemFormat
fn clone(&self) -> StemFormat
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 moreimpl Copy for StemFormat
Source§impl Debug for StemFormat
impl Debug for StemFormat
Source§impl Default for StemFormat
impl Default for StemFormat
Source§fn default() -> StemFormat
fn default() -> StemFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StemFormat
impl<'de> Deserialize<'de> for StemFormat
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 Display for StemFormat
impl Display for StemFormat
impl Eq for StemFormat
Source§impl FromStr for StemFormat
impl FromStr for StemFormat
Source§impl PartialEq for StemFormat
impl PartialEq for StemFormat
Source§fn eq(&self, other: &StemFormat) -> bool
fn eq(&self, other: &StemFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StemFormat
impl Serialize for StemFormat
impl StructuralPartialEq for StemFormat
Auto Trait Implementations§
impl Freeze for StemFormat
impl RefUnwindSafe for StemFormat
impl Send for StemFormat
impl Sync for StemFormat
impl Unpin for StemFormat
impl UnsafeUnpin for StemFormat
impl UnwindSafe for StemFormat
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