Enum SteVecQueryTerm
#[non_exhaustive]pub enum SteVecQueryTerm {
Selector {
selector: String,
},
Hmac {
hmac_256: String,
},
OreCllw {
ore_cllw_8: String,
},
Ope {
ope_cllw: String,
},
Containment {
query_vec: SteQueryVec<16>,
},
}Expand description
Per-STE-vector query term. Exactly one of s, hm, oc, op, or q.
Containment carries the full STE query vector emitted for JSON
containment (@>) queries (one (selector, term) per path in the query
JSON). Other variants carry a single per-element lookup term.
#[non_exhaustive] for the same reason as SteVecEntryTerm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Selector
Hmac
OreCllw
Ope
CLLW OPE query term (op) — a single hex-encoded order-preserving
ciphertext, matched bytewise against a stored sv-element op term
(Compat mode).
Containment
Full STE query vector for JSON containment queries.
Serialized under q to avoid collision with SteVecPayload::ste_vec
(sv). The wire shape of SteQueryVec is opaque to this layer; the
proxy / database decodes it via the encryption crate’s serde impls.
Fields
query_vec: SteQueryVec<16>Trait Implementations§
§impl Debug for SteVecQueryTerm
impl Debug for SteVecQueryTerm
§impl<'de> Deserialize<'de> for SteVecQueryTerm
impl<'de> Deserialize<'de> for SteVecQueryTerm
§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 From<SteVecEntryTerm> for SteVecQueryTerm
Lifts a stored per-element term onto the query term that matches it.
impl From<SteVecEntryTerm> for SteVecQueryTerm
Lifts a stored per-element term onto the query term that matches it.
SteVecQueryTerm is a strict superset of SteVecEntryTerm — it adds
Selector and Containment, which have no stored-entry counterpart. Every
shared variant keeps its wire key, so a query term always matches the
entries the same mode produced.
§fn from(term: SteVecEntryTerm) -> Self
fn from(term: SteVecEntryTerm) -> Self
§impl Serialize for SteVecQueryTerm
impl Serialize for SteVecQueryTerm
Auto Trait Implementations§
impl Freeze for SteVecQueryTerm
impl RefUnwindSafe for SteVecQueryTerm
impl Send for SteVecQueryTerm
impl Sync for SteVecQueryTerm
impl Unpin for SteVecQueryTerm
impl UnsafeUnpin for SteVecQueryTerm
impl UnwindSafe for SteVecQueryTerm
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
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