Skip to main content

convert_request_to_cipher_view

Function convert_request_to_cipher_view 

Source
pub(crate) fn convert_request_to_cipher_view(r: CipherEditRequest) -> CipherView
Expand description

Internal helper to convert a CipherEditRequest into a CipherView so the existing CipherView encryption pipeline can be reused.

This conversion is lossy and intended for use only within the edit flow, as the CipherView produced will not have all fields populated (e.g. collection_ids).