pub enum AssetType {
Jig,
Resource,
Playlist,
Course,
}
Expand description
AssetType
Variants§
Implementations§
Source§impl AssetType
impl AssetType
Sourcepub fn is_resource(&self) -> bool
pub fn is_resource(&self) -> bool
check if resource
Sourcepub fn is_playlist(&self) -> bool
pub fn is_playlist(&self) -> bool
check if playlist
Sourcepub fn display_name(&self) -> &'static str
pub fn display_name(&self) -> &'static str
asset type display name
Sourcepub fn display_name_capitalized(&self) -> &'static str
pub fn display_name_capitalized(&self) -> &'static str
asset type display name capitalized
return to gallery button on sidebar
Sourcepub fn to_asset_id(&self, uuid: Uuid) -> AssetId
pub fn to_asset_id(&self, uuid: Uuid) -> AssetId
Create asset id from self and uuid
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AssetType
impl<'de> Deserialize<'de> for AssetType
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 PathPart for AssetType
impl PathPart for AssetType
Source§fn get_path_string(&self) -> String
fn get_path_string(&self) -> String
string value to replace placeholder with
impl Copy for AssetType
impl Eq for AssetType
impl StructuralPartialEq for AssetType
Auto Trait Implementations§
impl Freeze for AssetType
impl RefUnwindSafe for AssetType
impl Send for AssetType
impl Sync for AssetType
impl Unpin for AssetType
impl UnwindSafe for AssetType
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