pub struct ProofOfRelationship {
pub por_type: String,
pub evidence: Vec<u8>,
}Expand description
Typed Proof of Relationship container. type controls how evidence
is parsed and validated; current Profile 0.2 requires "sd-jwt" with the
exact UTF-8 bytes of the issuer-signed SD-JWT presentation.
Fields§
§por_type: StringEvidence type; current Profile 0.2 requires
crate::POR_TYPE_SD_JWT.
evidence: Vec<u8>Type-specific evidence bytes; for "sd-jwt", the exact UTF-8 bytes
of the issuer-signed SD-JWT presentation.
Implementations§
Source§impl ProofOfRelationship
impl ProofOfRelationship
Sourcepub fn sd_jwt(presentation: &str) -> ProofOfRelationship
pub fn sd_jwt(presentation: &str) -> ProofOfRelationship
An SD-JWT Proof of Relationship from the exact textual RFC 9901 presentation string (issuer-signed JWT plus selected disclosures). The evidence stores its exact UTF-8 bytes; the presentation is not re-encoded.
Trait Implementations§
Source§impl Clone for ProofOfRelationship
impl Clone for ProofOfRelationship
Source§fn clone(&self) -> ProofOfRelationship
fn clone(&self) -> ProofOfRelationship
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProofOfRelationship
impl Debug for ProofOfRelationship
Source§impl<'de> Deserialize<'de> for ProofOfRelationship
impl<'de> Deserialize<'de> for ProofOfRelationship
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProofOfRelationship, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProofOfRelationship, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProofOfRelationship
Source§impl PartialEq for ProofOfRelationship
impl PartialEq for ProofOfRelationship
Source§impl Serialize for ProofOfRelationship
impl Serialize for ProofOfRelationship
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ProofOfRelationship
Auto Trait Implementations§
impl Freeze for ProofOfRelationship
impl RefUnwindSafe for ProofOfRelationship
impl Send for ProofOfRelationship
impl Sync for ProofOfRelationship
impl Unpin for ProofOfRelationship
impl UnsafeUnpin for ProofOfRelationship
impl UnwindSafe for ProofOfRelationship
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