diff --git a/src/note.rs b/src/note.rs index 1fd362c..eb9bcea 100644 --- a/src/note.rs +++ b/src/note.rs @@ -78,6 +78,10 @@ impl<'a> Note<'a> { unsafe { bindings::ndb_note_content_length(self.as_ptr()) as usize } } + fn created_at(&self) -> u64 { + unsafe { bindings::ndb_note_created_at(self.as_ptr()).into() } + } + pub fn content_ptr(&self) -> *const ::std::os::raw::c_char { unsafe { bindings::ndb_note_content(self.as_ptr()) } }