Type Alias nostr_types::PreEvent

source ·
pub type PreEvent = PreEventV3;
Expand description

Data used to construct an event

Aliased Type§

struct PreEvent {
    pub pubkey: PublicKey,
    pub created_at: Unixtime,
    pub kind: EventKind,
    pub tags: Vec<TagV3>,
    pub content: String,
}

Fields§

§pubkey: PublicKey

The public key of the actor who is creating the event

§created_at: Unixtime

The time at which the event was created

§kind: EventKind

The kind of event

§tags: Vec<TagV3>

A set of tags that apply to the event

§content: String

The content of the event