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