pub enum SerializationKey {
Default,
Value(String),
}Expand description
Controls which VEIL key is used when the body or query parameters are sealed.
Pass this to server::ServerMechanism::encryption, server::ServerMechanism::encrypted_query,
client::RequestBuilder::encryption, and client::RequestBuilder::encrypted_query.
For plain-JSON routes use the existing .json() / .query() builder methods instead.
| Variant | Wire format | Trait requirements on T |
|---|---|---|
Default | VEIL-sealed bytes (application/octet-stream) | bincode::Encode / Decode<()> |
Value(key) | VEIL-sealed bytes with a custom key | bincode::Encode / Decode<()> |
Variants§
Default
Use the built-in default VEIL key ("serialization/deserialization").
Value(String)
Use a custom VEIL key shared by both client and server.
Trait Implementations§
Source§impl Clone for SerializationKey
impl Clone for SerializationKey
Source§fn clone(&self) -> SerializationKey
fn clone(&self) -> SerializationKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SerializationKey
impl RefUnwindSafe for SerializationKey
impl Send for SerializationKey
impl Sync for SerializationKey
impl Unpin for SerializationKey
impl UnsafeUnpin for SerializationKey
impl UnwindSafe for SerializationKey
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