pub struct Resourcepack {
pub name: String,
pub path: PathBuf,
pub _type: ResourcepackType,
}
Available on crate feature
resourcepacks
only.Expand description
Represents a single resourcepack.
Fields§
§name: String
Filename
path: PathBuf
Filepath
_type: ResourcepackType
Type
Implementations§
Source§impl Resourcepack
impl Resourcepack
Sourcepub async fn remove(self) -> CobbleResult<()>
pub async fn remove(self) -> CobbleResult<()>
Removes the resourcepack from disk.
Warning: This will permanently delete the file!
Source§impl Resourcepack
impl Resourcepack
Sourcepub const TEXTUREPACK_VERSIONS: [&str; 94]
pub const TEXTUREPACK_VERSIONS: [&str; 94]
All minecraft versions that were using texturepacks instead of resourcepacks. Versions before 2013-06-13.
Trait Implementations§
Source§impl Clone for Resourcepack
impl Clone for Resourcepack
Source§fn clone(&self) -> Resourcepack
fn clone(&self) -> Resourcepack
Returns a copy 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 Resourcepack
impl Debug for Resourcepack
Source§impl<'de> Deserialize<'de> for Resourcepack
impl<'de> Deserialize<'de> for Resourcepack
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
Auto Trait Implementations§
impl Freeze for Resourcepack
impl RefUnwindSafe for Resourcepack
impl Send for Resourcepack
impl Sync for Resourcepack
impl Unpin for Resourcepack
impl UnwindSafe for Resourcepack
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