Enum EqlCiphertext
pub enum EqlCiphertext {
Encrypted(EncryptedPayload),
SteVec(SteVecPayload),
}Expand description
EQL v2.3 storage payload. One of two mutually exclusive root shapes
discriminated by k.
The Encrypted variant is larger than SteVec (it inlines the scalar
EncryptedRecord plus the root index terms), so clippy’s
large_enum_variant fires. Boxing a variant would change this published
SDK type’s public shape and ripple into downstream consumers (the proxy)
for no real benefit: these payloads are produced once per value and moved,
not stored in large collections. Keeping the enum unboxed keeps the public
API stable.
Variants§
Encrypted(EncryptedPayload)
Scalar ciphertext payload (k = "ct").
SteVec(SteVecPayload)
STE-vector payload (k = "sv") for jsonb / structured queries.
Implementations§
§impl EqlCiphertext
impl EqlCiphertext
pub fn identifier(&self) -> &Identifier
pub fn identifier(&self) -> &Identifier
Returns the table/column Identifier this payload belongs to.
pub fn version(&self) -> u16
pub fn version(&self) -> u16
Returns the EQL schema version recorded on this payload.
Always EQL_SCHEMA_VERSION for v2.x payloads; preserved on the type
to allow downstream consumers to detect version mismatches.
Trait Implementations§
§impl Clone for EqlCiphertext
impl Clone for EqlCiphertext
§fn clone(&self) -> EqlCiphertext
fn clone(&self) -> EqlCiphertext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for EqlCiphertext
impl Debug for EqlCiphertext
§impl<'de> Deserialize<'de> for EqlCiphertext
impl<'de> Deserialize<'de> for EqlCiphertext
§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>,
§impl Serialize for EqlCiphertext
impl Serialize for EqlCiphertext
Auto Trait Implementations§
impl Freeze for EqlCiphertext
impl RefUnwindSafe for EqlCiphertext
impl Send for EqlCiphertext
impl Sync for EqlCiphertext
impl Unpin for EqlCiphertext
impl UnsafeUnpin for EqlCiphertext
impl UnwindSafe for EqlCiphertext
Blanket Implementations§
impl<T> AuthStrategyBounds for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more