pub struct ServerSignaturePayload {
pub algorithm: String,
pub api_key: Option<String>,
pub id: Option<String>,
pub signature: String,
pub verification_data: String,
pub verified: bool,
}Expand description
Payload sent from ALTCHA Sentinel to be verified server-side.
Fields§
§algorithm: StringHash + HMAC algorithm (e.g. "SHA-256").
api_key: Option<String>§id: Option<String>§signature: StringHex-encoded HMAC signature of HASH(verificationData).
verification_data: StringURL-encoded query string of verification data from ALTCHA Sentinel.
verified: boolWhether ALTCHA Sentinel considers the submission verified.
Trait Implementations§
Source§impl Clone for ServerSignaturePayload
impl Clone for ServerSignaturePayload
Source§fn clone(&self) -> ServerSignaturePayload
fn clone(&self) -> ServerSignaturePayload
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 ServerSignaturePayload
impl Debug for ServerSignaturePayload
Source§impl<'de> Deserialize<'de> for ServerSignaturePayload
impl<'de> Deserialize<'de> for ServerSignaturePayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ServerSignaturePayload
impl RefUnwindSafe for ServerSignaturePayload
impl Send for ServerSignaturePayload
impl Sync for ServerSignaturePayload
impl Unpin for ServerSignaturePayload
impl UnsafeUnpin for ServerSignaturePayload
impl UnwindSafe for ServerSignaturePayload
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