pub struct FieldSelectedPresentation {
pub credential_id: String,
pub issuer_did: String,
pub subject_did: String,
pub credential_type: String,
pub disclosed_claims: Vec<(String, String)>,
pub verification_state: VerificationState,
}Expand description
The result of build_presentation: a credential reduced to the holder-selected claim keys.
Honesty boundary — this is plain JSON field selection, not cryptographic selective
disclosure. The omitted claims are simply not copied in. There is no unlinkability, no
zero-knowledge proof, and no cryptographic assurance that the disclosed claims were signed by
the issuer or that undisclosed claims exist. Do not treat a FieldSelectedPresentation as a
ZK / BBS+ selective-disclosure proof. The type name encodes this distinction on purpose.
Fields§
§credential_id: String§issuer_did: String§subject_did: String§credential_type: String§disclosed_claims: Vec<(String, String)>Only the claims whose keys were selected AND present on the credential.
verification_state: VerificationStateThe verification state copied from the source credential at build time (a cached hint, not a re-verification).
Trait Implementations§
Source§impl Clone for FieldSelectedPresentation
impl Clone for FieldSelectedPresentation
Source§impl Debug for FieldSelectedPresentation
impl Debug for FieldSelectedPresentation
Source§impl<'de> Deserialize<'de> for FieldSelectedPresentation
impl<'de> Deserialize<'de> for FieldSelectedPresentation
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
impl Eq for FieldSelectedPresentation
impl StructuralPartialEq for FieldSelectedPresentation
Auto Trait Implementations§
impl Freeze for FieldSelectedPresentation
impl RefUnwindSafe for FieldSelectedPresentation
impl Send for FieldSelectedPresentation
impl Sync for FieldSelectedPresentation
impl Unpin for FieldSelectedPresentation
impl UnsafeUnpin for FieldSelectedPresentation
impl UnwindSafe for FieldSelectedPresentation
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