pub struct NostrTag { /* private fields */ }Expand description
One exact, non-empty NIP-01 tag array.
Implementations§
Source§impl NostrTag
impl NostrTag
Sourcepub fn new<I, S>(values: I) -> Result<Self, SoftchatError>
pub fn new<I, S>(values: I) -> Result<Self, SoftchatError>
Retain one raw tag without interpreting or normalizing its elements.
Empty strings and trailing empty elements are significant and remain unchanged.
§Errors
Returns SoftchatError::InvalidEventTag for an empty array.
Trait Implementations§
impl Eq for NostrTag
impl StructuralPartialEq for NostrTag
Auto Trait Implementations§
impl !Freeze for NostrTag
impl RefUnwindSafe for NostrTag
impl Send for NostrTag
impl Sync for NostrTag
impl Unpin for NostrTag
impl UnsafeUnpin for NostrTag
impl UnwindSafe for NostrTag
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read more