pub struct SupportedResponse {
pub kinds: Vec<SupportedPaymentKind>,
pub extensions: Vec<String>,
pub signers: HashMap<ChainId, Vec<String>>,
}Expand description
Response from a facilitator’s /supported endpoint.
This response tells clients what payment methods the facilitator supports, including protocol versions, schemes, networks, and signer addresses.
§Example
{
"kinds": [
{ "x402Version": 2, "scheme": "exact", "network": "eip155:8453" }
],
"extensions": [],
"signers": {
"eip155:8453": ["0x1234..."]
}
}Fields§
§kinds: Vec<SupportedPaymentKind>List of supported payment kinds.
extensions: Vec<String>List of supported protocol extensions.
signers: HashMap<ChainId, Vec<String>>Map of chain IDs to signer addresses for that chain.
Trait Implementations§
Source§impl Clone for SupportedResponse
impl Clone for SupportedResponse
Source§fn clone(&self) -> SupportedResponse
fn clone(&self) -> SupportedResponse
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 SupportedResponse
impl Debug for SupportedResponse
Source§impl Default for SupportedResponse
impl Default for SupportedResponse
Source§fn default() -> SupportedResponse
fn default() -> SupportedResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SupportedResponse
impl<'de> Deserialize<'de> for SupportedResponse
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 SupportedResponse
impl RefUnwindSafe for SupportedResponse
impl Send for SupportedResponse
impl Sync for SupportedResponse
impl Unpin for SupportedResponse
impl UnwindSafe for SupportedResponse
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