pub struct DiscoveredService {
pub resource: String,
pub type: Option<String>,
pub x402_version: Option<u32>,
pub accepts: Vec<PaymentRequirements>,
pub metadata: Option<ServiceMetadata>,
}Fields§
§resource: String§type: Option<String>§x402_version: Option<u32>§accepts: Vec<PaymentRequirements>§metadata: Option<ServiceMetadata>Trait Implementations§
Source§impl Clone for DiscoveredService
impl Clone for DiscoveredService
Source§fn clone(&self) -> DiscoveredService
fn clone(&self) -> DiscoveredService
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 DiscoveredService
impl Debug for DiscoveredService
Source§impl<'de> Deserialize<'de> for DiscoveredService
impl<'de> Deserialize<'de> for DiscoveredService
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 DiscoveredService
impl RefUnwindSafe for DiscoveredService
impl Send for DiscoveredService
impl Sync for DiscoveredService
impl Unpin for DiscoveredService
impl UnsafeUnpin for DiscoveredService
impl UnwindSafe for DiscoveredService
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