#[repr(i32)]pub enum ValidationFailureReason {
Unspecified = 0,
InvalidSignature = 1,
Expired = 2,
KeyRetired = 3,
Malformed = 4,
}Expand description
Reason a deeplink-token validation failed. Empty when valid=true.
Variants§
Unspecified = 0
InvalidSignature = 1
Token bytes parsed but the HMAC signature did not verify under any active or overlap-window key version.
Expired = 2
Token signature verified but its embedded expiry has passed.
KeyRetired = 3
Signature would have verified, but the key version that signed the token is past the rotation overlap window and has been hard-deleted. This means the token is older than the platform’s retention bound (rotation cadence + overlap window) — operationally equivalent to EXPIRED but distinguishable for telemetry.
Malformed = 4
Token bytes could not be parsed at all (not base64url, wrong length, missing payload separator, etc.). Indicates a tampered or truncated URL.
Implementations§
Source§impl ValidationFailureReason
impl ValidationFailureReason
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of ValidationFailureReason.
Sourcepub fn from_i32(value: i32) -> Option<ValidationFailureReason>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ValidationFailureReason>
Use the TryFrom<i32> implementation instead
Converts an i32 to a ValidationFailureReason, or None if value is not a valid variant.
Source§impl ValidationFailureReason
impl ValidationFailureReason
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ValidationFailureReason
impl Clone for ValidationFailureReason
Source§fn clone(&self) -> ValidationFailureReason
fn clone(&self) -> ValidationFailureReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ValidationFailureReason
Source§impl Debug for ValidationFailureReason
impl Debug for ValidationFailureReason
Source§impl Default for ValidationFailureReason
impl Default for ValidationFailureReason
Source§fn default() -> ValidationFailureReason
fn default() -> ValidationFailureReason
impl Eq for ValidationFailureReason
Source§impl From<ValidationFailureReason> for i32
impl From<ValidationFailureReason> for i32
Source§fn from(value: ValidationFailureReason) -> i32
fn from(value: ValidationFailureReason) -> i32
Source§impl Hash for ValidationFailureReason
impl Hash for ValidationFailureReason
Source§impl Ord for ValidationFailureReason
impl Ord for ValidationFailureReason
Source§fn cmp(&self, other: &ValidationFailureReason) -> Ordering
fn cmp(&self, other: &ValidationFailureReason) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ValidationFailureReason
impl PartialEq for ValidationFailureReason
Source§impl PartialOrd for ValidationFailureReason
impl PartialOrd for ValidationFailureReason
impl StructuralPartialEq for ValidationFailureReason
Source§impl TryFrom<i32> for ValidationFailureReason
impl TryFrom<i32> for ValidationFailureReason
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<ValidationFailureReason, UnknownEnumValue>
fn try_from(value: i32) -> Result<ValidationFailureReason, UnknownEnumValue>
Auto Trait Implementations§
impl Freeze for ValidationFailureReason
impl RefUnwindSafe for ValidationFailureReason
impl Send for ValidationFailureReason
impl Sync for ValidationFailureReason
impl Unpin for ValidationFailureReason
impl UnsafeUnpin for ValidationFailureReason
impl UnwindSafe for ValidationFailureReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request