pub enum EnvelopeMode {
Standard,
UrlSafe,
Compressed,
Ttl,
}Expand description
The encoding mode used to create an Envelope.
Variants§
Standard
Standard Base64 encoding.
UrlSafe
URL-safe Base64 (- and _ instead of + and /, no padding).
Compressed
Gzip compressed then Base64 encoded.
Ttl
Standard Base64 with a Unix-timestamp expiry.
Trait Implementations§
Source§impl Clone for EnvelopeMode
impl Clone for EnvelopeMode
Source§fn clone(&self) -> EnvelopeMode
fn clone(&self) -> EnvelopeMode
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 moreSource§impl Debug for EnvelopeMode
impl Debug for EnvelopeMode
Source§impl<'de> Deserialize<'de> for EnvelopeMode
impl<'de> Deserialize<'de> for EnvelopeMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EnvelopeMode
impl PartialEq for EnvelopeMode
Source§impl Serialize for EnvelopeMode
impl Serialize for EnvelopeMode
impl Copy for EnvelopeMode
impl StructuralPartialEq for EnvelopeMode
Auto Trait Implementations§
impl Freeze for EnvelopeMode
impl RefUnwindSafe for EnvelopeMode
impl Send for EnvelopeMode
impl Sync for EnvelopeMode
impl Unpin for EnvelopeMode
impl UnsafeUnpin for EnvelopeMode
impl UnwindSafe for EnvelopeMode
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