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
Auto Trait Implementations§
impl Freeze for Screenshot
impl RefUnwindSafe for Screenshot
impl Send for Screenshot
impl Sync for Screenshot
impl Unpin for Screenshot
impl UnwindSafe for Screenshot
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