pub enum X402v2Network {
Eip1558453,
Eip15584532,
Eip155137,
Eip15542161,
Eip155480,
Eip1554801,
Solana5eykt4UsFv8P8nJdTrEpY1vzqKqZKvdp,
SolanaEtWtrabZaYq6iMfeYKouRu166Vu2xqa1,
}Expand description
The x402 v2 network identifier in CAIP-2 format. x402 v2 identifies networks by their CAIP-2 chain ID (e.g. eip155:<chainId> for EVM networks, solana:<genesisHash> for Solana). Supported networks: Base, Polygon, Arbitrum One, World Chain (EVM), and Solana.
JSON schema
{
"description": "The x402 v2 network identifier in CAIP-2 format. x402 v2 identifies networks by their CAIP-2 chain ID (e.g. `eip155:<chainId>` for EVM networks, `solana:<genesisHash>` for Solana). Supported networks: Base, Polygon, Arbitrum One, World Chain (EVM), and Solana.",
"examples": [
"eip155:8453"
],
"type": "string",
"enum": [
"eip155:8453",
"eip155:84532",
"eip155:137",
"eip155:42161",
"eip155:480",
"eip155:4801",
"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1"
]
}Variants§
Eip1558453
Eip15584532
Eip155137
Eip15542161
Eip155480
Eip1554801
Solana5eykt4UsFv8P8nJdTrEpY1vzqKqZKvdp
SolanaEtWtrabZaYq6iMfeYKouRu166Vu2xqa1
Trait Implementations§
Source§impl Clone for X402v2Network
impl Clone for X402v2Network
Source§fn clone(&self) -> X402v2Network
fn clone(&self) -> X402v2Network
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 X402v2Network
impl Debug for X402v2Network
Source§impl<'de> Deserialize<'de> for X402v2Network
impl<'de> Deserialize<'de> for X402v2Network
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 Display for X402v2Network
impl Display for X402v2Network
Source§impl From<&X402v2Network> for X402v2Network
impl From<&X402v2Network> for X402v2Network
Source§fn from(value: &X402v2Network) -> Self
fn from(value: &X402v2Network) -> Self
Converts to this type from the input type.
Source§impl FromStr for X402v2Network
impl FromStr for X402v2Network
Source§impl Hash for X402v2Network
impl Hash for X402v2Network
Source§impl Ord for X402v2Network
impl Ord for X402v2Network
Source§fn cmp(&self, other: &X402v2Network) -> Ordering
fn cmp(&self, other: &X402v2Network) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for X402v2Network
impl PartialEq for X402v2Network
Source§fn eq(&self, other: &X402v2Network) -> bool
fn eq(&self, other: &X402v2Network) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for X402v2Network
impl PartialOrd for X402v2Network
Source§impl Serialize for X402v2Network
impl Serialize for X402v2Network
Source§impl TryFrom<&String> for X402v2Network
impl TryFrom<&String> for X402v2Network
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for X402v2Network
impl TryFrom<&str> for X402v2Network
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for X402v2Network
impl TryFrom<String> for X402v2Network
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Copy for X402v2Network
impl Eq for X402v2Network
impl StructuralPartialEq for X402v2Network
Auto Trait Implementations§
impl Freeze for X402v2Network
impl RefUnwindSafe for X402v2Network
impl Send for X402v2Network
impl Sync for X402v2Network
impl Unpin for X402v2Network
impl UnsafeUnpin for X402v2Network
impl UnwindSafe for X402v2Network
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.