#[non_exhaustive]pub enum CompiledKeyStrategy {
FerrocatV1,
}Available on crate feature
catalog only.Expand description
Built-in key strategy used when compiling runtime catalogs.
This enum is non-exhaustive so additional stable key strategies can be added without breaking downstream matches.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FerrocatV1
ferrocat v1 key format: SHA-256 over a versioned, length-delimited
msgctxt/msgid payload, truncated to 64 bits and encoded as unpadded
Base64URL.
Trait Implementations§
Source§impl Clone for CompiledKeyStrategy
impl Clone for CompiledKeyStrategy
Source§fn clone(&self) -> CompiledKeyStrategy
fn clone(&self) -> CompiledKeyStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompiledKeyStrategy
Source§impl Debug for CompiledKeyStrategy
impl Debug for CompiledKeyStrategy
Source§impl Default for CompiledKeyStrategy
impl Default for CompiledKeyStrategy
Source§fn default() -> CompiledKeyStrategy
fn default() -> CompiledKeyStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CompiledKeyStrategy
impl<'de> Deserialize<'de> for CompiledKeyStrategy
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
impl Eq for CompiledKeyStrategy
Source§impl PartialEq for CompiledKeyStrategy
impl PartialEq for CompiledKeyStrategy
Source§fn eq(&self, other: &CompiledKeyStrategy) -> bool
fn eq(&self, other: &CompiledKeyStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CompiledKeyStrategy
impl Serialize for CompiledKeyStrategy
impl StructuralPartialEq for CompiledKeyStrategy
Auto Trait Implementations§
impl Freeze for CompiledKeyStrategy
impl RefUnwindSafe for CompiledKeyStrategy
impl Send for CompiledKeyStrategy
impl Sync for CompiledKeyStrategy
impl Unpin for CompiledKeyStrategy
impl UnsafeUnpin for CompiledKeyStrategy
impl UnwindSafe for CompiledKeyStrategy
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