pub struct Issue {
pub content: String,
pub repo: Coordinate,
pub mentions: Vec<PublicKey>,
pub subject: Option<String>,
pub hashtags: Vec<String>,
}Expand description
Typed bundle for the kind: 1621 issue event.
Fields§
§content: String.content — Markdown issue body.
repo: CoordinateRepository pointer.
mentions: Vec<PublicKey>People to notify.
subject: Option<String>Optional subject tag.
Issue labels.
Implementations§
Source§impl Issue
impl Issue
Sourcepub fn new(repo: Coordinate, content: impl Into<String>) -> Self
pub fn new(repo: Coordinate, content: impl Into<String>) -> Self
Construct an issue bundle.
Render the typed bundle to the public tag list.
Sourcepub fn from_event(event: &Event) -> Result<Self, Nip34Error>
pub fn from_event(event: &Event) -> Result<Self, Nip34Error>
Parse a signed kind-1621 event into a typed bundle.
§Errors
Returns Nip34Error::WrongKind for the wrong kind and
Nip34Error::MissingRepository when the a tag is
absent.
Trait Implementations§
impl Eq for Issue
impl StructuralPartialEq for Issue
Auto Trait Implementations§
impl Freeze for Issue
impl RefUnwindSafe for Issue
impl Send for Issue
impl Sync for Issue
impl Unpin for Issue
impl UnsafeUnpin for Issue
impl UnwindSafe for Issue
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.