Struct cobble_core::minecraft::Shaderpack
source · Available on crate feature
shaderpacks
only.Expand description
Represents a single shaderpack.
Fields§
§name: String
Filename
path: PathBuf
Filepath
Implementations§
source§impl Shaderpack
impl Shaderpack
sourcepub async fn remove(self) -> CobbleResult<()>
pub async fn remove(self) -> CobbleResult<()>
Removes the shaderpack from disk.
Warning: This will permanently delete the file!
Trait Implementations§
source§impl Clone for Shaderpack
impl Clone for Shaderpack
source§fn clone(&self) -> Shaderpack
fn clone(&self) -> Shaderpack
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 Shaderpack
impl Debug for Shaderpack
source§impl<'de> Deserialize<'de> for Shaderpack
impl<'de> Deserialize<'de> for Shaderpack
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