pub struct SchemeHandlerSlug {
pub chain_id: ChainId,
pub x402_version: u8,
pub name: String,
}Expand description
Unique identifier for a scheme handler instance.
Combines the chain ID, protocol version, and scheme name to uniquely identify a handler that can process payments for a specific combination.
Fields§
§chain_id: ChainIdThe chain this handler operates on.
x402_version: u8The x402 protocol version.
name: StringThe scheme name (e.g., “exact”).
Implementations§
Trait Implementations§
Source§impl Clone for SchemeHandlerSlug
impl Clone for SchemeHandlerSlug
Source§fn clone(&self) -> SchemeHandlerSlug
fn clone(&self) -> SchemeHandlerSlug
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 SchemeHandlerSlug
impl Debug for SchemeHandlerSlug
Source§impl Display for SchemeHandlerSlug
impl Display for SchemeHandlerSlug
Source§impl Hash for SchemeHandlerSlug
impl Hash for SchemeHandlerSlug
Source§impl PartialEq for SchemeHandlerSlug
impl PartialEq for SchemeHandlerSlug
impl Eq for SchemeHandlerSlug
impl StructuralPartialEq for SchemeHandlerSlug
Auto Trait Implementations§
impl Freeze for SchemeHandlerSlug
impl RefUnwindSafe for SchemeHandlerSlug
impl Send for SchemeHandlerSlug
impl Sync for SchemeHandlerSlug
impl Unpin for SchemeHandlerSlug
impl UnwindSafe for SchemeHandlerSlug
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