Enum nostr_types::ContentSegment
source · pub enum ContentSegment {
NostrUrl(NostrUrl),
TagReference(usize),
Hyperlink(Span),
Plain(Span),
}
Expand description
A segment of content
Variants§
NostrUrl(NostrUrl)
A Nostr URL
TagReference(usize)
A reference to an event tag by index
Hyperlink(Span)
A hyperlink
Plain(Span)
Plain text
Trait Implementations§
source§impl Clone for ContentSegment
impl Clone for ContentSegment
source§fn clone(&self) -> ContentSegment
fn clone(&self) -> ContentSegment
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ContentSegment
impl RefUnwindSafe for ContentSegment
impl Send for ContentSegment
impl Sync for ContentSegment
impl Unpin for ContentSegment
impl UnwindSafe for ContentSegment
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