pub struct Note {
pub id: i64,
pub title: String,
pub body: String,
pub tags: Vec<String>,
pub references: Vec<String>,
pub updated_at: String,
}Expand description
A full note with all fields.
Fields§
§id: i64§title: String§body: String§references: Vec<String>References to external resources (source code paths, URLs, documentation links, etc.)
updated_at: StringImplementations§
Source§impl Note
impl Note
Sourcepub fn to_summary(&self, max_len: usize) -> NoteSummary
pub fn to_summary(&self, max_len: usize) -> NoteSummary
Convert to summary with truncated first line of body.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Note
impl<'de> Deserialize<'de> for Note
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Note
impl RefUnwindSafe for Note
impl Send for Note
impl Sync for Note
impl Unpin for Note
impl UnwindSafe for Note
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