nostrdb-rs

nostrdb in rust!
git clone git://jb55.com/nostrdb-rs
Log | Files | Refs | Submodules | README | LICENSE

commit a3b69a90381702129e8c1b0ba582eee1eb156dec
parent 48b64361e48fea94b3d4ada458c7dad7346e181d
Author: William Casarin <jb55@jb55.com>
Date:   Tue,  6 Feb 2024 19:35:29 -0800

Merge remote-tracking branch 'github/master'

Diffstat:
Msrc/note.rs | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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 } } + pub 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()) } }