pub struct CreateA2AQuote {Show 15 fields
pub buyer_agent_id: Uuid,
pub seller_agent_id: Uuid,
pub items: Vec<QuotedItem>,
pub subtotal: Decimal,
pub tax_amount: Option<Decimal>,
pub shipping_amount: Option<Decimal>,
pub discount_amount: Option<Decimal>,
pub total: Decimal,
pub currency: Option<CurrencyCode>,
pub payment_network: Option<X402Network>,
pub payment_asset: Option<X402Asset>,
pub shipping_address: Option<CartAddress>,
pub valid_until: DateTime<Utc>,
pub notes: Option<String>,
pub metadata: Option<String>,
}Expand description
Input for creating an A2A quote
Fields§
§buyer_agent_id: Uuid§seller_agent_id: Uuid§items: Vec<QuotedItem>§subtotal: Decimal§tax_amount: Option<Decimal>§shipping_amount: Option<Decimal>§discount_amount: Option<Decimal>§total: Decimal§currency: Option<CurrencyCode>§payment_network: Option<X402Network>§payment_asset: Option<X402Asset>§shipping_address: Option<CartAddress>§valid_until: DateTime<Utc>§notes: Option<String>§metadata: Option<String>Trait Implementations§
Source§impl Clone for CreateA2AQuote
impl Clone for CreateA2AQuote
Source§fn clone(&self) -> CreateA2AQuote
fn clone(&self) -> CreateA2AQuote
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 CreateA2AQuote
impl Debug for CreateA2AQuote
Source§impl Default for CreateA2AQuote
impl Default for CreateA2AQuote
Source§fn default() -> CreateA2AQuote
fn default() -> CreateA2AQuote
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateA2AQuote
impl<'de> Deserialize<'de> for CreateA2AQuote
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateA2AQuote, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateA2AQuote, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CreateA2AQuote
impl Serialize for CreateA2AQuote
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 CreateA2AQuote
impl RefUnwindSafe for CreateA2AQuote
impl Send for CreateA2AQuote
impl Sync for CreateA2AQuote
impl Unpin for CreateA2AQuote
impl UnsafeUnpin for CreateA2AQuote
impl UnwindSafe for CreateA2AQuote
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