pub enum ContentSegment {
NostrUrl(NostrUrl),
TagReference(usize),
Hyperlink(Span),
Hashtag(String),
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
Hashtag(String)
A hash tag
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 moreSource§impl Debug for ContentSegment
impl Debug for ContentSegment
Source§impl PartialEq for ContentSegment
impl PartialEq for ContentSegment
impl Eq for ContentSegment
impl StructuralPartialEq for ContentSegment
Auto 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