pub struct StatusEvent {
pub content: String,
pub status: GitStatus,
pub references: Vec<StatusReference>,
pub mentions: Vec<PublicKey>,
pub repo: Option<Coordinate>,
pub repo_euc: Option<String>,
pub quoted_patches: Vec<EventId>,
pub merge_commit: Option<String>,
pub applied_as_commits: Vec<String>,
}Expand description
Typed bundle for the kind: 1630..=1633 status events.
Fields§
§content: String.content — free-form explanation.
status: GitStatusTyped status discriminator (controls the rendered kind).
references: Vec<StatusReference>e tag references (root + reply revisions).
mentions: Vec<PublicKey>People to notify.
repo: Option<Coordinate>Optional repository pointer.
repo_euc: Option<String>Optional earliest-unique-commit hex.
quoted_patches: Vec<EventId>Optional q tag — quoted patch references on 1631 events.
merge_commit: Option<String>Optional merge-commit hex (only on 1631).
applied_as_commits: Vec<String>Optional applied-as-commits list (only on 1631).
Implementations§
Source§impl StatusEvent
impl StatusEvent
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-1630..=1633 event into a typed bundle.
§Errors
Returns Nip34Error::InvalidStatusKind when the event’s
kind is outside 1630..=1633; forwards every parse error.
Trait Implementations§
Source§impl Clone for StatusEvent
impl Clone for StatusEvent
Source§fn clone(&self) -> StatusEvent
fn clone(&self) -> StatusEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StatusEvent
impl Debug for StatusEvent
impl Eq for StatusEvent
Source§impl PartialEq for StatusEvent
impl PartialEq for StatusEvent
impl StructuralPartialEq for StatusEvent
Auto Trait Implementations§
impl Freeze for StatusEvent
impl RefUnwindSafe for StatusEvent
impl Send for StatusEvent
impl Sync for StatusEvent
impl Unpin for StatusEvent
impl UnsafeUnpin for StatusEvent
impl UnwindSafe for StatusEvent
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.