pub enum VerifyChallengeResponse {
Verified {
api_key: String,
expires_at: u64,
},
Expired,
InvalidSignature,
ServiceNotFound,
Unauthorized,
UnexpectedError {
message: String,
},
}Expand description
Represents the response sent from the server to the client after verifying the challenge solution.
Variants§
Verified
The challenge was verified successfully - returns an API key
Fields
Expired
The challenge was not verified because the challenge has expired
InvalidSignature
The challenge was not verified because the signature is invalid
ServiceNotFound
The challenge was not verified because the service ID is not found
The challenge was not verified because the service ID is not authorized
UnexpectedError
An unexpected error occurred during verification
Trait Implementations§
Source§impl Clone for VerifyChallengeResponse
impl Clone for VerifyChallengeResponse
Source§fn clone(&self) -> VerifyChallengeResponse
fn clone(&self) -> VerifyChallengeResponse
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 VerifyChallengeResponse
impl Debug for VerifyChallengeResponse
Source§impl<'de> Deserialize<'de> for VerifyChallengeResponse
impl<'de> Deserialize<'de> for VerifyChallengeResponse
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 VerifyChallengeResponse
impl RefUnwindSafe for VerifyChallengeResponse
impl Send for VerifyChallengeResponse
impl Sync for VerifyChallengeResponse
impl Unpin for VerifyChallengeResponse
impl UnwindSafe for VerifyChallengeResponse
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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