Enum threema_gateway::LookupCriterion
source · Expand description
Different ways to look up a Threema ID in the directory.
Variants
Phone(String)
The phone number must be passed in E.164 format, without the leading +
.
PhoneHash(String)
The phone number must be passed as an HMAC-SHA256 hash of the E.164
number without the leading +
. The HMAC key is
85adf8226953f3d96cfd5d09bf29555eb955fcd8aa5ec4f9fcd869e258370723
(in hexadecimal).
Email(String)
The email address.
EmailHash(String)
The lowercased and whitespace-trimmed email address must be hashed with
HMAC-SHA256. The HMAC key is
30a5500fed9701fa6defdb610841900febb8e430881f7ad816826264ec09bad7
(in hexadecimal).
Trait Implementations
sourceimpl Debug for LookupCriterion
impl Debug for LookupCriterion
sourceimpl Display for LookupCriterion
impl Display for LookupCriterion
sourceimpl PartialEq<LookupCriterion> for LookupCriterion
impl PartialEq<LookupCriterion> for LookupCriterion
sourcefn eq(&self, other: &LookupCriterion) -> bool
fn eq(&self, other: &LookupCriterion) -> bool
impl StructuralPartialEq for LookupCriterion
Auto Trait Implementations
impl RefUnwindSafe for LookupCriterion
impl Send for LookupCriterion
impl Sync for LookupCriterion
impl Unpin for LookupCriterion
impl UnwindSafe for LookupCriterion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more