pub enum ValidationKey<'a> {
BotToken(&'a str),
Ed25519PublicKey(&'a [u8; 32]),
}
Expand description
Key material used to validate Telegram init data.
Variants§
BotToken(&'a str)
Validate using a bot token and HMAC-SHA256.
Ed25519PublicKey(&'a [u8; 32])
Validate using an Ed25519 public key.
Trait Implementations§
Source§impl<'a> Clone for ValidationKey<'a>
impl<'a> Clone for ValidationKey<'a>
Source§fn clone(&self) -> ValidationKey<'a>
fn clone(&self) -> ValidationKey<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for ValidationKey<'a>
impl<'a> Debug for ValidationKey<'a>
impl<'a> Copy for ValidationKey<'a>
Auto Trait Implementations§
impl<'a> Freeze for ValidationKey<'a>
impl<'a> RefUnwindSafe for ValidationKey<'a>
impl<'a> Send for ValidationKey<'a>
impl<'a> Sync for ValidationKey<'a>
impl<'a> Unpin for ValidationKey<'a>
impl<'a> UnwindSafe for ValidationKey<'a>
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