pub struct CreateAgentCard {Show 17 fields
pub name: String,
pub description: Option<String>,
pub wallet_address: String,
pub public_key: String,
pub supported_networks: Option<Vec<X402Network>>,
pub supported_assets: Option<Vec<X402Asset>>,
pub a2a_skills: Option<Vec<A2ASkill>>,
pub trust_level: Option<TrustLevel>,
pub endpoint_url: Option<String>,
pub endpoint_protocol: Option<String>,
pub merchant_id: Option<String>,
pub merchant_name: Option<String>,
pub business_category: Option<String>,
pub max_transaction_amount: Option<u64>,
pub daily_volume_limit: Option<u64>,
pub requires_kyc: Option<bool>,
pub metadata: Option<String>,
}Expand description
Input for creating an agent card
Fields§
§name: String§description: Option<String>§wallet_address: String§public_key: String§supported_networks: Option<Vec<X402Network>>§supported_assets: Option<Vec<X402Asset>>§a2a_skills: Option<Vec<A2ASkill>>§trust_level: Option<TrustLevel>§endpoint_url: Option<String>§endpoint_protocol: Option<String>§merchant_id: Option<String>§merchant_name: Option<String>§business_category: Option<String>§max_transaction_amount: Option<u64>§daily_volume_limit: Option<u64>§requires_kyc: Option<bool>§metadata: Option<String>Trait Implementations§
Source§impl Clone for CreateAgentCard
impl Clone for CreateAgentCard
Source§fn clone(&self) -> CreateAgentCard
fn clone(&self) -> CreateAgentCard
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 CreateAgentCard
impl Debug for CreateAgentCard
Source§impl Default for CreateAgentCard
impl Default for CreateAgentCard
Source§fn default() -> CreateAgentCard
fn default() -> CreateAgentCard
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateAgentCard
impl<'de> Deserialize<'de> for CreateAgentCard
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateAgentCard, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateAgentCard, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CreateAgentCard
impl Serialize for CreateAgentCard
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CreateAgentCard
impl RefUnwindSafe for CreateAgentCard
impl Send for CreateAgentCard
impl Sync for CreateAgentCard
impl Unpin for CreateAgentCard
impl UnsafeUnpin for CreateAgentCard
impl UnwindSafe for CreateAgentCard
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