pub struct ValidateKeyResult {
pub valid: bool,
pub provider: String,
pub message: Option<String>,
}Expand description
Result of an API key validation attempt.
Fields§
§valid: boolWhether the key is valid.
provider: StringProvider that was validated.
message: Option<String>Optional message (error detail or success note).
Trait Implementations§
Source§impl Clone for ValidateKeyResult
impl Clone for ValidateKeyResult
Source§fn clone(&self) -> ValidateKeyResult
fn clone(&self) -> ValidateKeyResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ValidateKeyResult
impl Debug for ValidateKeyResult
Source§impl<'de> Deserialize<'de> for ValidateKeyResult
impl<'de> Deserialize<'de> for ValidateKeyResult
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 ValidateKeyResult
impl RefUnwindSafe for ValidateKeyResult
impl Send for ValidateKeyResult
impl Sync for ValidateKeyResult
impl Unpin for ValidateKeyResult
impl UnsafeUnpin for ValidateKeyResult
impl UnwindSafe for ValidateKeyResult
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