pub struct NoteWrite {
pub kind: NoteKind,
pub key: String,
pub category: Option<String>,
pub description: Option<String>,
pub body: String,
pub source: NoteSource,
}Expand description
One note to write.
Fields§
§kind: NoteKind§key: StringThe note’s key; with the kind it names the file.
category: Option<String>The memory category it was given (technical, project, …).
description: Option<String>One line for the index; the body’s first line when None.
body: String§source: NoteSourceTrait Implementations§
Auto Trait Implementations§
impl Forget for NoteWrite
impl Freeze for NoteWrite
impl Move for NoteWrite
impl RefUnwindSafe for NoteWrite
impl Send for NoteWrite
impl Sync for NoteWrite
impl Unpin for NoteWrite
impl UnsafeUnpin for NoteWrite
impl UnwindSafe for NoteWrite
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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