pub struct PseudoDataPoint {
pub participant: Vec<Pseudonym>,
pub extra_data: Value,
pub result_code: StatusCode,
}
Fields§
§participant: Vec<Pseudonym>
§extra_data: Value
§result_code: StatusCode
Implementations§
Source§impl PseudoDataPoint
impl PseudoDataPoint
pub fn ok(participant: Vec<Pseudonym>, extra_data: Value) -> Self
pub fn not_found(participant: Vec<Pseudonym>, extra_data: Value) -> Self
pub fn forbidden(participant: Vec<Pseudonym>, extra_data: Value) -> Self
pub fn server_error(participant: Vec<Pseudonym>, extra_data: Value) -> Self
pub fn bad_request(participant: Vec<Pseudonym>, error_message: &str) -> Self
pub fn data_processing_error( participant: Vec<Pseudonym>, error_message: &str, ) -> Self
pub fn with_code( participant: Vec<Pseudonym>, extra_data: Value, code: StatusCode, ) -> Self
Trait Implementations§
Source§impl Clone for PseudoDataPoint
impl Clone for PseudoDataPoint
Source§fn clone(&self) -> PseudoDataPoint
fn clone(&self) -> PseudoDataPoint
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 PseudoDataPoint
impl Debug for PseudoDataPoint
Source§impl HasBatchInfo<PseudoDataPoint> for ActivityBatchRequest
impl HasBatchInfo<PseudoDataPoint> for ActivityBatchRequest
fn participants(&self) -> Vec<Vec<Pseudonym>>
fn extra_data(&self) -> Vec<Value>
fn pseudo_data_points(&self) -> Vec<PseudoDataPoint>
fn domain(&self) -> PseudonymizationDomain
Source§impl HasBatchInfo<PseudoDataPoint> for ActivityBatchResponse
impl HasBatchInfo<PseudoDataPoint> for ActivityBatchResponse
fn participants(&self) -> Vec<Vec<Pseudonym>>
fn extra_data(&self) -> Vec<Value>
fn pseudo_data_points(&self) -> Vec<PseudoDataPoint>
fn domain(&self) -> PseudonymizationDomain
Source§impl PEPBatchMessageType<PEPPseudoDataPoint, PseudoDataPoint> for ActivityBatchRequestMessageType
impl PEPBatchMessageType<PEPPseudoDataPoint, PseudoDataPoint> for ActivityBatchRequestMessageType
type PEPBatchMessage = PEPActivityBatchRequest
type BatchMessage = ActivityBatchRequest
async fn pack<R: RngCore + CryptoRng>( request: Self::BatchMessage, domain_to: PseudonymizationDomain, ps: &mut PseudonymService, rng: &mut R, ) -> Result<Self::PEPBatchMessage, ApiError>
async fn unpack( request: Self::PEPBatchMessage, ps: &mut PseudonymService, ) -> Result<Self::BatchMessage, ApiError>
Source§impl PEPBatchMessageType<PEPPseudoDataPoint, PseudoDataPoint> for ActivityBatchResponseMessageType
impl PEPBatchMessageType<PEPPseudoDataPoint, PseudoDataPoint> for ActivityBatchResponseMessageType
type PEPBatchMessage = PEPActivityBatchResponse
type BatchMessage = ActivityBatchResponse
async fn pack<R: RngCore + CryptoRng>( request: Self::BatchMessage, domain_to: PseudonymizationDomain, ps: &mut PseudonymService, rng: &mut R, ) -> Result<Self::PEPBatchMessage, ApiError>
async fn unpack( request: Self::PEPBatchMessage, ps: &mut PseudonymService, ) -> Result<Self::BatchMessage, ApiError>
Auto Trait Implementations§
impl Freeze for PseudoDataPoint
impl RefUnwindSafe for PseudoDataPoint
impl Send for PseudoDataPoint
impl Sync for PseudoDataPoint
impl Unpin for PseudoDataPoint
impl UnwindSafe for PseudoDataPoint
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