pub struct CredentialRequestParams {
pub delivery: Delivery,
pub account: Option<String>,
pub metadata: Option<String>,
pub requester_name: Option<String>,
pub requester_icon: Option<String>,
pub scopes: BTreeSet<String>,
pub permissions: BTreeSet<String>,
pub label: Option<String>,
pub expires_at: Option<TimestampMs>,
}Expand description
The parts of a CredentialRequest that the REQUESTER chooses.
Fields§
§delivery: Delivery§account: Option<String>The REQUESTER account being connected, in a form the user recognizes,
e.g. @janedoe. Shown on the approval screen and bound into the
response encryption, so a forwarded request can’t be re-targeted.
metadata: Option<String>Echoed back verbatim in the response.
requester_name: Option<String>The REQUESTER’s own name, shown only for a verified REQUESTER; see
CredentialRequest::requester_branding.
requester_icon: Option<String>The REQUESTER’s icon url, likewise.
scopes: BTreeSet<String>Granted exactly as requested, or the request is rejected. Scope and permission names are opaque here; the WALLET validates them when it creates the credential.
permissions: BTreeSet<String>Granted exactly as requested, or the request is rejected.
label: Option<String>Prefills the credential label; the user may change it.
expires_at: Option<TimestampMs>Prefills the credential expiration; the user may change it.
Trait Implementations§
Source§impl Clone for CredentialRequestParams
impl Clone for CredentialRequestParams
Source§impl Debug for CredentialRequestParams
impl Debug for CredentialRequestParams
impl Eq for CredentialRequestParams
Source§impl PartialEq for CredentialRequestParams
impl PartialEq for CredentialRequestParams
impl StructuralPartialEq for CredentialRequestParams
Auto Trait Implementations§
impl Freeze for CredentialRequestParams
impl RefUnwindSafe for CredentialRequestParams
impl Send for CredentialRequestParams
impl Sync for CredentialRequestParams
impl Unpin for CredentialRequestParams
impl UnsafeUnpin for CredentialRequestParams
impl UnwindSafe for CredentialRequestParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.