pub struct SearchToken {
pub pairs: Vec<(Tag, [u8; 32])>,
}Expand description
A SearchToken authorises exactly one search query.
It contains a list of (EDB address, decryption key) pairs — one per live result. The server fetches each Tag; the client decrypts each value.
Forward security: a token generated at time T cannot read entries written after T (they have different tags from fresh indices).
Backward security: a token generated after a deletion cannot read the deleted entry (its tag was retired with the old epoch).
Fields§
§pairs: Vec<(Tag, [u8; 32])>One pair per live entry for this keyword.
Auto Trait Implementations§
impl Freeze for SearchToken
impl RefUnwindSafe for SearchToken
impl Send for SearchToken
impl Sync for SearchToken
impl Unpin for SearchToken
impl UnsafeUnpin for SearchToken
impl UnwindSafe for SearchToken
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