pub struct CredentialRequestResponse {
pub request_id: RequestId,
pub request_uri: String,
pub expires_in: u64,
pub nonce: String,
}Expand description
Response from creating a credential presentation request.
Contains all information needed to present a QR code to the user and poll for completion.
Fields§
§request_id: RequestIdUnique identifier for this request (for polling)
request_uri: StringOpenID4VP request URI for QR code display.
This is the openid4vp:// URL that the mobile app scans
to retrieve the presentation request details.
expires_in: u64Request expiration time in seconds from creation.
nonce: StringCryptographic nonce for replay protection.
Implementations§
Source§impl CredentialRequestResponse
impl CredentialRequestResponse
Sourcepub const fn new(
request_id: RequestId,
request_uri: String,
expires_in: u64,
nonce: String,
) -> Self
pub const fn new( request_id: RequestId, request_uri: String, expires_in: u64, nonce: String, ) -> Self
Create a new credential request response.
Sourcepub const fn request_id(&self) -> &RequestId
pub const fn request_id(&self) -> &RequestId
Get the request ID for polling.
Sourcepub fn request_uri(&self) -> &str
pub fn request_uri(&self) -> &str
Get the OpenID4VP request URI for QR code display.
Sourcepub const fn expires_in(&self) -> u64
pub const fn expires_in(&self) -> u64
Get the expiration time in seconds.
Trait Implementations§
Source§impl Clone for CredentialRequestResponse
impl Clone for CredentialRequestResponse
Source§fn clone(&self) -> CredentialRequestResponse
fn clone(&self) -> CredentialRequestResponse
Returns a duplicate 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 Debug for CredentialRequestResponse
impl Debug for CredentialRequestResponse
Source§impl<'de> Deserialize<'de> for CredentialRequestResponse
impl<'de> Deserialize<'de> for CredentialRequestResponse
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 Display for CredentialRequestResponse
impl Display for CredentialRequestResponse
Auto Trait Implementations§
impl Freeze for CredentialRequestResponse
impl RefUnwindSafe for CredentialRequestResponse
impl Send for CredentialRequestResponse
impl Sync for CredentialRequestResponse
impl Unpin for CredentialRequestResponse
impl UnsafeUnpin for CredentialRequestResponse
impl UnwindSafe for CredentialRequestResponse
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.