pub struct SignatureKey(/* private fields */);Expand description
Secret used to validate Gingr webhook signatures before payloads cross the provider boundary.
Implementations§
Source§impl SignatureKey
impl SignatureKey
Sourcepub fn from_secret(raw: impl Into<String>) -> Self
pub fn from_secret(raw: impl Into<String>) -> Self
Wraps the shared Gingr webhook secret without exposing it in debug output.
Trait Implementations§
Source§impl Clone for SignatureKey
impl Clone for SignatureKey
Source§fn clone(&self) -> SignatureKey
fn clone(&self) -> SignatureKey
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 Debug for SignatureKey
impl Debug for SignatureKey
Auto Trait Implementations§
impl Freeze for SignatureKey
impl RefUnwindSafe for SignatureKey
impl Send for SignatureKey
impl Sync for SignatureKey
impl Unpin for SignatureKey
impl UnsafeUnpin for SignatureKey
impl UnwindSafe for SignatureKey
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