pub struct ParticipantInfo {
pub pseudonym: Pseudonym,
pub domain: PseudonymizationDomain,
}
Expand description
Information about a participant within the DataSource.
Fields§
§pseudonym: Pseudonym
A pseudonym for the participant existing in the domain.
domain: PseudonymizationDomain
The domain of the pseudonym. This often maps one-to-one with the DataSource itself (each data source has its own domain), but in some cases, a data source may have multiple domains. In this case, the data source should treat the participant in every domain as a separate entity.
Implementations§
Source§impl ParticipantInfo
impl ParticipantInfo
Sourcepub async fn encrypt<R: RngCore + CryptoRng>(
&self,
ps: &mut PseudonymService,
rng: R,
) -> Result<PEPParticipantInfo, ApiError>
pub async fn encrypt<R: RngCore + CryptoRng>( &self, ps: &mut PseudonymService, rng: R, ) -> Result<PEPParticipantInfo, ApiError>
Encrypt ParticipantInfo into PEPParticipantInfo using a PseudonymService.
Trait Implementations§
Source§impl Clone for ParticipantInfo
impl Clone for ParticipantInfo
Source§fn clone(&self) -> ParticipantInfo
fn clone(&self) -> ParticipantInfo
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 moreAuto Trait Implementations§
impl Freeze for ParticipantInfo
impl RefUnwindSafe for ParticipantInfo
impl Send for ParticipantInfo
impl Sync for ParticipantInfo
impl Unpin for ParticipantInfo
impl UnwindSafe for ParticipantInfo
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