Skip to main content

build

Function build 

Source
pub fn build(
    text: &str,
    parent: Option<&Event>,
    author: PublicKey,
) -> EventBuilder
Expand description

text as an event of author’s, yet to be signed: a note; a reply to parent, if that is a text note; or a comment on parent, if it is anything else. A note that quotes another is a note, whatever it quotes. A tag the reply already carries is not added again for the text’s sake.