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
事件的時間,但包含 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> Freeze for RepoEntry<'b>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more