pub struct X402ResourceQuality {
pub l30_days_total_calls: Option<i64>,
pub l30_days_unique_payers: Option<i64>,
pub last_called_at: Option<DateTime<Utc>>,
}Expand description
Quality metrics for a discovered x402 resource.
JSON schema
{
"description": "Quality metrics for a discovered x402 resource.",
"examples": [
{
"l30DaysTotalCalls": 42,
"l30DaysUniquePayers": 15,
"lastCalledAt": "2024-01-15T10:30:00Z"
}
],
"type": "object",
"properties": {
"l30DaysTotalCalls": {
"description": "Total number of paid calls to a resource in the last 30 days.",
"examples": [
42
],
"type": "integer"
},
"l30DaysUniquePayers": {
"description": "Number of unique payers to a resource in the last 30 days.",
"examples": [
15
],
"type": "integer"
},
"lastCalledAt": {
"description": "Timestamp of the most recent paid call to a resource.",
"examples": [
"2024-01-15T10:30:00Z"
],
"type": "string",
"format": "date-time"
}
}
}Fields§
§l30_days_total_calls: Option<i64>Total number of paid calls to a resource in the last 30 days.
l30_days_unique_payers: Option<i64>Number of unique payers to a resource in the last 30 days.
last_called_at: Option<DateTime<Utc>>Timestamp of the most recent paid call to a resource.
Implementations§
Source§impl X402ResourceQuality
impl X402ResourceQuality
pub fn builder() -> X402ResourceQuality
Trait Implementations§
Source§impl Clone for X402ResourceQuality
impl Clone for X402ResourceQuality
Source§fn clone(&self) -> X402ResourceQuality
fn clone(&self) -> X402ResourceQuality
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 X402ResourceQuality
impl Debug for X402ResourceQuality
Source§impl Default for X402ResourceQuality
impl Default for X402ResourceQuality
Source§impl<'de> Deserialize<'de> for X402ResourceQuality
impl<'de> Deserialize<'de> for X402ResourceQuality
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<&X402ResourceQuality> for X402ResourceQuality
impl From<&X402ResourceQuality> for X402ResourceQuality
Source§fn from(value: &X402ResourceQuality) -> Self
fn from(value: &X402ResourceQuality) -> Self
Converts to this type from the input type.
Source§impl From<X402ResourceQuality> for X402ResourceQuality
impl From<X402ResourceQuality> for X402ResourceQuality
Source§fn from(value: X402ResourceQuality) -> Self
fn from(value: X402ResourceQuality) -> Self
Converts to this type from the input type.
Source§impl Serialize for X402ResourceQuality
impl Serialize for X402ResourceQuality
Source§impl TryFrom<X402ResourceQuality> for X402ResourceQuality
impl TryFrom<X402ResourceQuality> for X402ResourceQuality
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: X402ResourceQuality) -> Result<Self, ConversionError>
fn try_from(value: X402ResourceQuality) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for X402ResourceQuality
impl RefUnwindSafe for X402ResourceQuality
impl Send for X402ResourceQuality
impl Sync for X402ResourceQuality
impl Unpin for X402ResourceQuality
impl UnsafeUnpin for X402ResourceQuality
impl UnwindSafe for X402ResourceQuality
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