Skip to main content

wrap

Function wrap 

Source
pub fn wrap(
    target: Target,
    content: String,
    earlier: Option<&Event>,
    now: Timestamp,
) -> EventBuilder
Expand description

The draft wrap for target, with content for what it wraps: encrypted, or nothing at all for a draft that is done with. Written at now or, if earlier, the wrap it replaces, claims to be from later, after it: it has to be the newer of the two.