pub struct AcceptedCredential {
pub credential: TbfFooterV2Credentials,
pub metadata: Option<CheckResultAcceptMetadata>,
}
Expand description
The accepted credential from the credential checker.
This combines both the credential as stored in the TBF footer with an optional opaque value provided by the checker when it accepted the credential. This value can be used when assigning an AppID to the application based on the how the credential was approved. For example, if the credential checker has a list of valid public keys used to verify signatures, it might set the optional value to the index of the public key in this list.
Fields§
§credential: TbfFooterV2Credentials
The credential stored in the footer that the credential checker accepted.
metadata: Option<CheckResultAcceptMetadata>
An optional opaque value set by the credential checker to store metadata about the accepted credential. This is credential checker specific.
Trait Implementations§
Source§impl Clone for AcceptedCredential
impl Clone for AcceptedCredential
Source§fn clone(&self) -> AcceptedCredential
fn clone(&self) -> AcceptedCredential
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 moreimpl Copy for AcceptedCredential
Auto Trait Implementations§
impl Freeze for AcceptedCredential
impl RefUnwindSafe for AcceptedCredential
impl Send for AcceptedCredential
impl Sync for AcceptedCredential
impl Unpin for AcceptedCredential
impl UnwindSafe for AcceptedCredential
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