pub struct SlackEventSignatureVerifier { /* private fields */ }
Implementations§
source§impl SlackEventSignatureVerifier
impl SlackEventSignatureVerifier
pub const SLACK_SIGNED_HASH_HEADER: &'static str = "x-slack-signature"
pub const SLACK_SIGNED_TIMESTAMP: &'static str = "x-slack-request-timestamp"
pub fn new(secret: &SlackSigningSecret) -> Self
pub fn verify<'b>( &self, hash: &'b str, body: &'b str, ts: &'b str ) -> Result<(), SlackEventSignatureVerifierError>
Trait Implementations§
source§impl Clone for SlackEventSignatureVerifier
impl Clone for SlackEventSignatureVerifier
source§fn clone(&self) -> SlackEventSignatureVerifier
fn clone(&self) -> SlackEventSignatureVerifier
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for SlackEventSignatureVerifier
impl Send for SlackEventSignatureVerifier
impl Sync for SlackEventSignatureVerifier
impl Unpin for SlackEventSignatureVerifier
impl UnwindSafe for SlackEventSignatureVerifier
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