pub struct VerificationResult {
pub valid: bool,
pub agent_address: Address,
pub agent_key: B256,
pub agent_id: U256,
pub agent_count: U256,
pub nullifier: U256,
pub credentials: Option<AgentCredentials>,
pub error: Option<String>,
pub retry_after_ms: Option<u64>,
pub proof_expires_at: Option<u64>,
pub days_until_expiry: Option<i32>,
pub is_expiring_soon: bool,
}Expand description
Result of verifying an agent request.
Fields§
§valid: bool§agent_address: AddressThe agent’s Ethereum address (recovered from signature).
agent_key: B256The agent’s on-chain key (bytes32).
agent_id: U256§agent_count: U256Number of agents registered by the same human.
nullifier: U256Human’s nullifier (for rate limiting by human identity).
credentials: Option<AgentCredentials>ZK-attested credentials (only populated when include_credentials is true).
error: Option<String>§retry_after_ms: Option<u64>Milliseconds until the rate limit resets (only set when rate limited).
proof_expires_at: Option<u64>Unix timestamp (seconds) when the agent’s proof expires. None if no expiry set.
days_until_expiry: Option<i32>Number of days until the proof expires. Negative if already expired, None if no expiry set.
is_expiring_soon: boolWhether the proof is expiring within 30 days.
Trait Implementations§
Source§impl Clone for VerificationResult
impl Clone for VerificationResult
Source§fn clone(&self) -> VerificationResult
fn clone(&self) -> VerificationResult
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 VerificationResult
impl Debug for VerificationResult
Source§impl<'de> Deserialize<'de> for VerificationResult
impl<'de> Deserialize<'de> for VerificationResult
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 VerificationResult
impl RefUnwindSafe for VerificationResult
impl Send for VerificationResult
impl Sync for VerificationResult
impl Unpin for VerificationResult
impl UnsafeUnpin for VerificationResult
impl UnwindSafe for VerificationResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more