Struct hyper_scripter::script_repo::helper::RepoEntry
source · pub struct RepoEntry<'b> { /* private fields */ }
Implementations§
source§impl<'b> RepoEntry<'b>
impl<'b> RepoEntry<'b>
sourcepub async fn update<F: FnOnce(&mut ScriptInfo)>(
&mut self,
handler: F
) -> Result<i64>
pub async fn update<F: FnOnce(&mut ScriptInfo)>( &mut self, handler: F ) -> Result<i64>
回傳值為「上一筆記錄到的事件的 id」
pub fn into_inner(self) -> &'b ScriptInfo
pub fn get_env(&self) -> &DBEnv
Methods from Deref<Target = &'b mut ScriptInfo>§
pub fn cp(&self, new_name: ScriptName) -> Self
sourcepub fn last_major_time(&self) -> NaiveDateTime
pub fn last_major_time(&self) -> NaiveDateTime
major time
即不包含 read
和 miss
事件的時間,但包含 humble
sourcepub fn last_time(&self) -> NaiveDateTime
pub fn last_time(&self) -> NaiveDateTime
不包含 humble
pub fn file_path_fallback(&self) -> PathBuf
Trait Implementations§
Auto Trait Implementations§
impl<'b> !RefUnwindSafe for RepoEntry<'b>
impl<'b> Send for RepoEntry<'b>
impl<'b> Sync for RepoEntry<'b>
impl<'b> Unpin for RepoEntry<'b>
impl<'b> !UnwindSafe for RepoEntry<'b>
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