Struct payjoin::send::RequestContext
source · pub struct RequestContext { /* private fields */ }
Implementations§
source§impl RequestContext
impl RequestContext
sourcepub fn extract_v1(self) -> Result<(Request, ContextV1), CreateRequestError>
pub fn extract_v1(self) -> Result<(Request, ContextV1), CreateRequestError>
Extract serialized V1 Request and Context froma Payjoin Proposal
sourcepub fn extract_v2(
&mut self,
ohttp_relay: Url
) -> Result<(Request, ContextV2), CreateRequestError>
pub fn extract_v2( &mut self, ohttp_relay: Url ) -> Result<(Request, ContextV2), CreateRequestError>
Extract serialized Request and Context from a Payjoin Proposal.
In order to support polling, this may need to be called many times to be encrypted with new unique nonces to make independent OHTTP requests.
The ohttp_relay
merely passes the encrypted payload to the ohttp gateway of the receiver
Trait Implementations§
source§impl Clone for RequestContext
impl Clone for RequestContext
source§fn clone(&self) -> RequestContext
fn clone(&self) -> RequestContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de> Deserialize<'de> for RequestContext
impl<'de> Deserialize<'de> for RequestContext
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for RequestContext
impl PartialEq for RequestContext
source§impl Serialize for RequestContext
impl Serialize for RequestContext
impl Eq for RequestContext
Auto Trait Implementations§
impl Freeze for RequestContext
impl RefUnwindSafe for RequestContext
impl Send for RequestContext
impl Sync for RequestContext
impl Unpin for RequestContext
impl UnwindSafe for RequestContext
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