pub struct Entry {Show 16 fields
pub id: String,
pub name: String,
pub kind: SoundKind,
pub formats: Vec<String>,
pub version: Option<String>,
pub homepage: String,
pub description: String,
pub license: License,
pub platforms: Vec<String>,
pub downloads: Vec<Download>,
pub status: String,
pub category: Option<String>,
pub tags: Vec<String>,
pub aliases: Vec<String>,
pub install_from: Option<InstallFrom>,
pub notes: String,
}Fields§
§id: String§name: String§kind: SoundKind§formats: Vec<String>§version: Option<String>§homepage: String§description: String§license: License§platforms: Vec<String>§downloads: Vec<Download>§status: Stringverified (every download hashed), unverified, or vendor (install –from only).
category: Option<String>§aliases: Vec<String>Instrument names this entry is a good default for (sounds alias piano=<id>).
install_from: Option<InstallFrom>§notes: StringImplementations§
Source§impl Entry
impl Entry
Sourcepub fn downloads_for(&self, os: &str) -> Vec<&Download>
pub fn downloads_for(&self, os: &str) -> Vec<&Download>
The downloads to fetch on this platform (all parts), or None when the entry has
nothing for it.
pub fn size_for(&self, os: &str) -> Option<u64>
pub fn verified_for(&self, os: &str) -> bool
pub fn is_vendor_only(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entry
impl<'de> Deserialize<'de> for Entry
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
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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> 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