pub struct ResendPayload {
pub wrap_event: Event,
pub rumor: UnsignedEvent,
pub secret: SecretKey,
pub recipient_pubkey: PublicKey,
pub relay_urls: Vec<String>,
pub rumor_id: EventId,
}Expand description
Everything needed to republish a failed DM’s recipient wrap verbatim.
Fields§
§wrap_event: EventThe exact kind-1059 event to republish (same id → relay dedup).
rumor: UnsignedEventThe inner rumor, for finalize + the self-send copy on success.
secret: SecretKeyThe wrap’s ephemeral secret (re-associated with the injected wrap;
republishing a pre-signed event never reads it, but the send path’s
BuiltGiftWrap carries it).
recipient_pubkey: PublicKey§relay_urls: Vec<String>Relay set attempted at first send (fallback targets).
rumor_id: EventIdAuto Trait Implementations§
impl Freeze for ResendPayload
impl RefUnwindSafe for ResendPayload
impl Send for ResendPayload
impl Sync for ResendPayload
impl Unpin for ResendPayload
impl UnsafeUnpin for ResendPayload
impl UnwindSafe for ResendPayload
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more