pub struct Record {
pub participant: String,
pub extra_data: Value,
pub result_code: StatusCode,
}Fields§
§participant: String§extra_data: Value§result_code: StatusCodeImplementations§
Source§impl Record
impl Record
pub fn ok(participant: String, extra_data: Value) -> Self
pub fn not_found(participant: String, extra_data: Value) -> Self
pub fn forbidden(participant: String, extra_data: Value) -> Self
pub fn server_error(participant: String, extra_data: Value) -> Self
pub fn bad_request(participant: String, error_message: &str) -> Self
pub fn data_processing_error(participant: String, error_message: &str) -> Self
pub fn with_code( participant: String, extra_data: Value, code: StatusCode, ) -> Self
Trait Implementations§
Source§impl HasBatchInfo<Record> for ActivityBatchRequest
impl HasBatchInfo<Record> for ActivityBatchRequest
Source§impl HasBatchInfo<Record> for ActivityBatchResponse
impl HasBatchInfo<Record> for ActivityBatchResponse
Source§impl PEPBatchMessageType<EncryptedPEPJSONValue, Record> for ActivityBatchRequestMessageType
impl PEPBatchMessageType<EncryptedPEPJSONValue, Record> for ActivityBatchRequestMessageType
type PEPBatchMessage = PEPActivityBatchRequest
type BatchMessage = ActivityBatchRequest
fn pack( request: Self::BatchMessage, domain_to: PseudonymizationDomain, ps: &mut PseudonymService, ) -> Result<Self::PEPBatchMessage, ApiError>
async fn unpack( request: Self::PEPBatchMessage, ps: &mut PseudonymService, ) -> Result<Self::BatchMessage, ApiError>
Source§impl PEPBatchMessageType<EncryptedPEPJSONValue, Record> for ActivityBatchResponseMessageType
impl PEPBatchMessageType<EncryptedPEPJSONValue, Record> for ActivityBatchResponseMessageType
type PEPBatchMessage = PEPActivityBatchResponse
type BatchMessage = ActivityBatchResponse
fn pack( request: Self::BatchMessage, domain_to: PseudonymizationDomain, ps: &mut PseudonymService, ) -> Result<Self::PEPBatchMessage, ApiError>
async fn unpack( request: Self::PEPBatchMessage, ps: &mut PseudonymService, ) -> Result<Self::BatchMessage, ApiError>
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnsafeUnpin for Record
impl UnwindSafe for Record
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