pub struct X402ValidateIndex {
pub active: bool,
pub last_crawled_at: Option<DateTime<Utc>>,
pub quality: Option<X402ResourceQuality>,
}Expand description
Bazaar index status for a validated x402 endpoint.
JSON schema
{
"description": "Bazaar index status for a validated x402 endpoint.",
"examples": [
{
"active": true,
"lastCrawledAt": "2026-06-01T12:00:00Z",
"quality": {
"l30DaysTotalCalls": 42,
"l30DaysUniquePayers": 15,
"lastCalledAt": "2026-06-01T12:00:00Z"
}
}
],
"type": "object",
"required": [
"active",
"lastCrawledAt"
],
"properties": {
"active": {
"description": "Whether the indexed resource is active and served in discovery results.",
"examples": [
true
],
"type": "boolean"
},
"lastCrawledAt": {
"description": "When the endpoint was last crawled, or `null` if it has been indexed but not yet crawled.",
"examples": [
"2026-06-01T12:00:00Z"
],
"type": [
"string",
"null"
],
"format": "date-time"
},
"quality": {
"description": "Quality metrics for the indexed resource, present only when the endpoint has call history.",
"allOf": [
{
"$ref": "#/components/schemas/x402ResourceQuality"
}
]
}
}
}Fields§
§active: boolWhether the indexed resource is active and served in discovery results.
last_crawled_at: Option<DateTime<Utc>>When the endpoint was last crawled, or null if it has been indexed but not yet crawled.
quality: Option<X402ResourceQuality>Quality metrics for the indexed resource, present only when the endpoint has call history.
Implementations§
Source§impl X402ValidateIndex
impl X402ValidateIndex
pub fn builder() -> X402ValidateIndex
Trait Implementations§
Source§impl Clone for X402ValidateIndex
impl Clone for X402ValidateIndex
Source§impl Debug for X402ValidateIndex
impl Debug for X402ValidateIndex
Source§impl<'de> Deserialize<'de> for X402ValidateIndex
impl<'de> Deserialize<'de> for X402ValidateIndex
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
Source§impl From<&X402ValidateIndex> for X402ValidateIndex
impl From<&X402ValidateIndex> for X402ValidateIndex
Source§fn from(value: &X402ValidateIndex) -> Self
fn from(value: &X402ValidateIndex) -> Self
Converts to this type from the input type.
Source§impl From<X402ValidateIndex> for X402ValidateIndex
impl From<X402ValidateIndex> for X402ValidateIndex
Source§fn from(value: X402ValidateIndex) -> Self
fn from(value: X402ValidateIndex) -> Self
Converts to this type from the input type.
Source§impl Serialize for X402ValidateIndex
impl Serialize for X402ValidateIndex
Source§impl TryFrom<X402ValidateIndex> for X402ValidateIndex
impl TryFrom<X402ValidateIndex> for X402ValidateIndex
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: X402ValidateIndex) -> Result<Self, ConversionError>
fn try_from(value: X402ValidateIndex) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for X402ValidateIndex
impl RefUnwindSafe for X402ValidateIndex
impl Send for X402ValidateIndex
impl Sync for X402ValidateIndex
impl Unpin for X402ValidateIndex
impl UnsafeUnpin for X402ValidateIndex
impl UnwindSafe for X402ValidateIndex
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