pub enum SoundTarget {
File(String),
Search(String),
Category(String),
Top,
Latest,
}Expand description
Audio discovery target.
Variants§
File(String)
Exact Commons file title.
Search(String)
Free-text search.
Category(String)
Exact Commons category name without the Category: prefix.
Top
Widely reused audio.
Latest
Recently uploaded audio.
Implementations§
Source§impl SoundTarget
impl SoundTarget
Sourcepub fn is_collection(&self) -> bool
pub fn is_collection(&self) -> bool
Whether this target can return multiple files.
Trait Implementations§
Source§impl Clone for SoundTarget
impl Clone for SoundTarget
Source§fn clone(&self) -> SoundTarget
fn clone(&self) -> SoundTarget
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 SoundTarget
impl Debug for SoundTarget
impl Eq for SoundTarget
Source§impl PartialEq for SoundTarget
impl PartialEq for SoundTarget
impl StructuralPartialEq for SoundTarget
Auto Trait Implementations§
impl Freeze for SoundTarget
impl RefUnwindSafe for SoundTarget
impl Send for SoundTarget
impl Sync for SoundTarget
impl Unpin for SoundTarget
impl UnsafeUnpin for SoundTarget
impl UnwindSafe for SoundTarget
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