pub struct DailyLogService;Expand description
Service for logging note creation events to daily notes.
Implementations§
Source§impl DailyLogService
impl DailyLogService
Sourcepub fn log_creation(
config: &ResolvedConfig,
note_type: &str,
title: &str,
note_id: &str,
output_path: &Path,
) -> Result<(), String>
pub fn log_creation( config: &ResolvedConfig, note_type: &str, title: &str, note_id: &str, output_path: &Path, ) -> Result<(), String>
Log a creation event to today’s daily note.
Creates the daily note if it doesn’t exist. The log entry includes a wikilink to the created note.
§Arguments
config- Resolved vault configurationnote_type- Type of note created (e.g., “task”, “project”)title- Title of the created notenote_id- ID of the note (e.g., “TST-001”), can be emptyoutput_path- Path where the note was written
Auto Trait Implementations§
impl Freeze for DailyLogService
impl RefUnwindSafe for DailyLogService
impl Send for DailyLogService
impl Sync for DailyLogService
impl Unpin for DailyLogService
impl UnsafeUnpin for DailyLogService
impl UnwindSafe for DailyLogService
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