pub struct FileSavedEvent {
pub file_path: String,
pub size: u64,
pub hash: String,
pub timestamp: String,
pub language: Option<String>,
}Expand description
File saved event
Emitted when a file is saved in the editor or through the CLI.
Fields§
§file_path: StringPath to the saved file
size: u64File size in bytes
hash: StringFile hash (SHA256)
timestamp: StringTimestamp of the save
language: Option<String>Language of the file (if detected)
Trait Implementations§
Source§impl Clone for FileSavedEvent
impl Clone for FileSavedEvent
Source§fn clone(&self) -> FileSavedEvent
fn clone(&self) -> FileSavedEvent
Returns a duplicate 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 FileSavedEvent
impl Debug for FileSavedEvent
Source§impl<'de> Deserialize<'de> for FileSavedEvent
impl<'de> Deserialize<'de> for FileSavedEvent
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 FileSavedEvent
impl RefUnwindSafe for FileSavedEvent
impl Send for FileSavedEvent
impl Sync for FileSavedEvent
impl Unpin for FileSavedEvent
impl UnwindSafe for FileSavedEvent
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