pub struct PEPParticipantInfo {
pub encrypted_pseudonym: EncryptedPseudonym,
pub sessions: EncryptionContexts,
pub domain_from: PseudonymizationDomain,
}
Expand description
Encrypted information about a participant that still needs to be transcrypted.
Fields§
§encrypted_pseudonym: EncryptedPseudonym
An encrypted pseudonym for the participant.
sessions: EncryptionContexts
The sessions in which the pseudonym was encrypted.
domain_from: PseudonymizationDomain
The domain of the pseudonym before encryption.
Implementations§
Source§impl PEPParticipantInfo
impl PEPParticipantInfo
Sourcepub async fn decrypt(
&self,
ps: &mut PseudonymService,
domain_to: PseudonymizationDomain,
) -> Result<ParticipantInfo, ApiError>
pub async fn decrypt( &self, ps: &mut PseudonymService, domain_to: PseudonymizationDomain, ) -> Result<ParticipantInfo, ApiError>
Decrypt PEPParticipantInfo into ParticipantInfo in a specific PseudonymizationDomain, using a PseudonymService.
Trait Implementations§
Source§impl Clone for PEPParticipantInfo
impl Clone for PEPParticipantInfo
Source§fn clone(&self) -> PEPParticipantInfo
fn clone(&self) -> PEPParticipantInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PEPParticipantInfo
impl Debug for PEPParticipantInfo
Source§impl<'de> Deserialize<'de> for PEPParticipantInfo
impl<'de> Deserialize<'de> for PEPParticipantInfo
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
Auto Trait Implementations§
impl Freeze for PEPParticipantInfo
impl RefUnwindSafe for PEPParticipantInfo
impl Send for PEPParticipantInfo
impl Sync for PEPParticipantInfo
impl Unpin for PEPParticipantInfo
impl UnwindSafe for PEPParticipantInfo
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