Struct cobble_core::minecraft::Screenshot
source · pub struct Screenshot {
pub name: String,
pub path: PathBuf,
pub created: Option<OffsetDateTime>,
}
Available on crate feature
screenshots
only.Expand description
Represents a single screenshot.
Fields§
§name: String
Name of the save game
path: PathBuf
Path to the save game
created: Option<OffsetDateTime>
Created timestamp
Implementations§
source§impl Screenshot
impl Screenshot
sourcepub async fn remove(self) -> CobbleResult<()>
pub async fn remove(self) -> CobbleResult<()>
Removes the screenshot from disk.
Warning: This will permanently delete the file!
Trait Implementations§
source§impl Clone for Screenshot
impl Clone for Screenshot
source§fn clone(&self) -> Screenshot
fn clone(&self) -> Screenshot
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 Screenshot
impl Debug for Screenshot
source§impl<'de> Deserialize<'de> for Screenshot
impl<'de> Deserialize<'de> for Screenshot
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