pub enum RecommendationsAttribute {
Show 42 variants
MinAcousticness(f32),
MaxAcousticness(f32),
TargetAcousticness(f32),
MinDanceability(f32),
MaxDanceability(f32),
TargetDanceability(f32),
MinDurationMs(i32),
MaxDurationMs(i32),
TargetDurationMs(i32),
MinEnergy(f32),
MaxEnergy(f32),
TargetEnergy(f32),
MinInstrumentalness(f32),
MaxInstrumentalness(f32),
TargetInstrumentalness(f32),
MinKey(i32),
MaxKey(i32),
TargetKey(i32),
MinLiveness(f32),
MaxLiveness(f32),
TargetLiveness(f32),
MinLoudness(f32),
MaxLoudness(f32),
TargetLoudness(f32),
MinMode(i32),
MaxMode(i32),
TargetMode(i32),
MinPopularity(i32),
MaxPopularity(i32),
TargetPopularity(i32),
MinSpeechiness(f32),
MaxSpeechiness(f32),
TargetSpeechiness(f32),
MinTempo(f32),
MaxTempo(f32),
TargetTempo(f32),
MinTimeSignature(i32),
MaxTimeSignature(i32),
TargetTimeSignature(i32),
MinValence(f32),
MaxValence(f32),
TargetValence(f32),
}Expand description
The attributes for recommendations
Variants§
MinAcousticness(f32)
MaxAcousticness(f32)
TargetAcousticness(f32)
MinDanceability(f32)
MaxDanceability(f32)
TargetDanceability(f32)
MinDurationMs(i32)
MaxDurationMs(i32)
TargetDurationMs(i32)
MinEnergy(f32)
MaxEnergy(f32)
TargetEnergy(f32)
MinInstrumentalness(f32)
MaxInstrumentalness(f32)
TargetInstrumentalness(f32)
MinKey(i32)
MaxKey(i32)
TargetKey(i32)
MinLiveness(f32)
MaxLiveness(f32)
TargetLiveness(f32)
MinLoudness(f32)
MaxLoudness(f32)
TargetLoudness(f32)
MinMode(i32)
MaxMode(i32)
TargetMode(i32)
MinPopularity(i32)
MaxPopularity(i32)
TargetPopularity(i32)
MinSpeechiness(f32)
MaxSpeechiness(f32)
TargetSpeechiness(f32)
MinTempo(f32)
MaxTempo(f32)
TargetTempo(f32)
MinTimeSignature(i32)
MaxTimeSignature(i32)
TargetTimeSignature(i32)
MinValence(f32)
MaxValence(f32)
TargetValence(f32)
Implementations§
Source§impl RecommendationsAttribute
impl RecommendationsAttribute
Sourcepub fn value_string(&self) -> String
pub fn value_string(&self) -> String
Obtains the value of the enum as a String, which may be helpful when serializing it.
Trait Implementations§
Source§impl Clone for RecommendationsAttribute
impl Clone for RecommendationsAttribute
Source§fn clone(&self) -> RecommendationsAttribute
fn clone(&self) -> RecommendationsAttribute
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 RecommendationsAttribute
impl Debug for RecommendationsAttribute
Source§impl<'_derivative_strum> From<&'_derivative_strum RecommendationsAttribute> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum RecommendationsAttribute> for &'static str
Source§fn from(x: &'_derivative_strum RecommendationsAttribute) -> &'static str
fn from(x: &'_derivative_strum RecommendationsAttribute) -> &'static str
Converts to this type from the input type.
Source§impl From<RecommendationsAttribute> for &'static str
impl From<RecommendationsAttribute> for &'static str
Source§fn from(x: RecommendationsAttribute) -> &'static str
fn from(x: RecommendationsAttribute) -> &'static str
Converts to this type from the input type.
Source§impl PartialEq for RecommendationsAttribute
impl PartialEq for RecommendationsAttribute
Source§impl Serialize for RecommendationsAttribute
impl Serialize for RecommendationsAttribute
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for RecommendationsAttribute
impl StructuralPartialEq for RecommendationsAttribute
Auto Trait Implementations§
impl Freeze for RecommendationsAttribute
impl RefUnwindSafe for RecommendationsAttribute
impl Send for RecommendationsAttribute
impl Sync for RecommendationsAttribute
impl Unpin for RecommendationsAttribute
impl UnwindSafe for RecommendationsAttribute
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> 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